depot/third_party/nixpkgs/pkgs/development/python-modules/pygithub/default.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

57 lines
1.1 KiB
Nix

{ lib
, buildPythonPackage
, deprecated
, fetchFromGitHub
, pynacl
, typing-extensions
, pyjwt
, pythonOlder
, requests
, setuptools
, setuptools-scm
, urllib3
}:
buildPythonPackage rec {
pname = "pygithub";
version = "2.3.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "PyGithub";
repo = "PyGithub";
rev = "refs/tags/v${version}";
hash = "sha256-ccAbn9x1r+wBIAK66ur8+2Op9ij09rQvHumq5Wh7TUU=";
};
build-system = [
setuptools
setuptools-scm
];
dependencies = [
deprecated
pyjwt
pynacl
requests
typing-extensions
urllib3
] ++ pyjwt.optional-dependencies.crypto;
# Test suite makes REST calls against github.com
doCheck = false;
pythonImportsCheck = [
"github"
];
meta = with lib; {
description = "Python library to access the GitHub API v3";
homepage = "https://github.com/PyGithub/PyGithub";
changelog = "https://github.com/PyGithub/PyGithub/raw/v${version}/doc/changes.rst";
license = licenses.lgpl3Plus;
maintainers = with maintainers; [ jhhuh ];
};
}