2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
deprecated,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pynacl,
|
|
|
|
typing-extensions,
|
|
|
|
pyjwt,
|
|
|
|
pythonOlder,
|
|
|
|
requests,
|
|
|
|
setuptools,
|
|
|
|
setuptools-scm,
|
|
|
|
urllib3,
|
2021-05-03 20:48:10 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2023-03-15 16:39:30 +00:00
|
|
|
pname = "pygithub";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "2.3.0";
|
|
|
|
pyproject = true;
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
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}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-ccAbn9x1r+wBIAK66ur8+2Op9ij09rQvHumq5Wh7TUU=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
build-system = [
|
|
|
|
setuptools
|
2023-07-15 17:15:38 +00:00
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
dependencies = [
|
2021-05-03 20:48:10 +00:00
|
|
|
deprecated
|
|
|
|
pyjwt
|
2023-07-15 17:15:38 +00:00
|
|
|
pynacl
|
2021-05-03 20:48:10 +00:00
|
|
|
requests
|
2023-07-15 17:15:38 +00:00
|
|
|
typing-extensions
|
2024-04-21 15:54:59 +00:00
|
|
|
urllib3
|
2023-07-15 17:15:38 +00:00
|
|
|
] ++ pyjwt.optional-dependencies.crypto;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# Test suite makes REST calls against github.com
|
|
|
|
doCheck = false;
|
2023-07-15 17:15:38 +00:00
|
|
|
|
2024-06-05 15:53:02 +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 ];
|
|
|
|
};
|
|
|
|
}
|