2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, cryptography
|
|
|
|
, deprecated
|
|
|
|
, fetchFromGitHub
|
2021-05-03 20:48:10 +00:00
|
|
|
, pynacl
|
2020-04-24 23:36:52 +00:00
|
|
|
, pyjwt
|
2021-05-03 20:48:10 +00:00
|
|
|
, pythonOlder
|
|
|
|
, requests
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "PyGithub";
|
2022-11-04 12:27:35 +00:00
|
|
|
version = "1.57";
|
|
|
|
format = "setuptools";
|
2021-05-03 20:48:10 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "PyGithub";
|
|
|
|
repo = "PyGithub";
|
2022-10-21 18:38:19 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2022-11-04 12:27:35 +00:00
|
|
|
sha256 = "sha256-7CNvSOwDXXcJ082/Fmgr6OtTQeA30yDjt/Oq2nx4vEk=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-05-03 20:48:10 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
cryptography
|
|
|
|
deprecated
|
|
|
|
pynacl
|
|
|
|
pyjwt
|
|
|
|
requests
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# Test suite makes REST calls against github.com
|
|
|
|
doCheck = false;
|
2021-05-03 20:48:10 +00:00
|
|
|
pythonImportsCheck = [ "github" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2021-05-03 20:48:10 +00:00
|
|
|
description = "Python library to access the GitHub API v3";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/PyGithub/PyGithub";
|
2022-11-04 12:27:35 +00:00
|
|
|
changelog = "https://github.com/PyGithub/PyGithub/raw/v${version}/doc/changes.rst";
|
2021-05-03 20:48:10 +00:00
|
|
|
license = licenses.lgpl3Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ jhhuh ];
|
|
|
|
};
|
|
|
|
}
|