e7ec2969af
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
55 lines
1.1 KiB
Nix
55 lines
1.1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, deprecated
|
|
, fetchFromGitHub
|
|
, pynacl
|
|
, typing-extensions
|
|
, pyjwt
|
|
, python-dateutil
|
|
, pythonOlder
|
|
, requests
|
|
, setuptools-scm
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pygithub";
|
|
version = "2.1.1";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "PyGithub";
|
|
repo = "PyGithub";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-ysa1RAWuFFQCF6bYwAUVFou7nxCKHLZbUtrUtXiSpPk=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools-scm
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
deprecated
|
|
pyjwt
|
|
pynacl
|
|
python-dateutil
|
|
requests
|
|
typing-extensions
|
|
] ++ 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 ];
|
|
};
|
|
}
|