1{
2 lib,
3 buildPythonPackage,
4 deprecated,
5 fetchFromGitHub,
6 pynacl,
7 typing-extensions,
8 pyjwt,
9 pythonOlder,
10 requests,
11 setuptools,
12 setuptools-scm,
13 urllib3,
14}:
15
16buildPythonPackage rec {
17 pname = "pygithub";
18 version = "2.3.0";
19 pyproject = true;
20
21 disabled = pythonOlder "3.7";
22
23 src = fetchFromGitHub {
24 owner = "PyGithub";
25 repo = "PyGithub";
26 rev = "refs/tags/v${version}";
27 hash = "sha256-ccAbn9x1r+wBIAK66ur8+2Op9ij09rQvHumq5Wh7TUU=";
28 };
29
30 build-system = [
31 setuptools
32 setuptools-scm
33 ];
34
35 dependencies = [
36 deprecated
37 pyjwt
38 pynacl
39 requests
40 typing-extensions
41 urllib3
42 ] ++ pyjwt.optional-dependencies.crypto;
43
44 # Test suite makes REST calls against github.com
45 doCheck = false;
46
47 pythonImportsCheck = [ "github" ];
48
49 meta = with lib; {
50 description = "Python library to access the GitHub API v3";
51 homepage = "https://github.com/PyGithub/PyGithub";
52 changelog = "https://github.com/PyGithub/PyGithub/raw/v${version}/doc/changes.rst";
53 license = licenses.lgpl3Plus;
54 maintainers = with maintainers; [ jhhuh ];
55 };
56}