fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
56 lines
1.1 KiB
Nix
56 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 ];
|
|
};
|
|
}
|