c594a97518
GitOrigin-RevId: 301aada7a64812853f2e2634a530ef5d34505048
43 lines
868 B
Nix
43 lines
868 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, cryptography
|
|
, deprecated
|
|
, fetchFromGitHub
|
|
, pynacl
|
|
, pyjwt
|
|
, pythonOlder
|
|
, requests
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "PyGithub";
|
|
version = "1.56";
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "PyGithub";
|
|
repo = "PyGithub";
|
|
rev = "refs/tags/v${version}";
|
|
sha256 = "sha256-L6xrv3dAT/sWt/7ZeDy3P095g7Lpht52LkfCVYNLkbA=";
|
|
};
|
|
|
|
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";
|
|
platforms = platforms.all;
|
|
license = licenses.lgpl3Plus;
|
|
maintainers = with maintainers; [ jhhuh ];
|
|
};
|
|
}
|