1be0098156
GitOrigin-RevId: 667e5581d16745bcda791300ae7e2d73f49fff25
44 lines
950 B
Nix
44 lines
950 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, cryptography
|
|
, deprecated
|
|
, fetchFromGitHub
|
|
, pynacl
|
|
, pyjwt
|
|
, pythonOlder
|
|
, requests
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "PyGithub";
|
|
version = "1.57";
|
|
format = "setuptools";
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "PyGithub";
|
|
repo = "PyGithub";
|
|
rev = "refs/tags/v${version}";
|
|
sha256 = "sha256-7CNvSOwDXXcJ082/Fmgr6OtTQeA30yDjt/Oq2nx4vEk=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
cryptography
|
|
deprecated
|
|
pynacl
|
|
pyjwt
|
|
requests
|
|
];
|
|
|
|
# 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 ];
|
|
};
|
|
}
|