blob: 1efcb940f1a4b4ced9f507b6c70dd8aed66efa16 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
{ lib
, buildPythonPackage
, deprecated
, fetchFromGitHub
, pynacl
, typing-extensions
, pyjwt
, python-dateutil
, pythonOlder
, requests
, setuptools-scm
}:
buildPythonPackage rec {
pname = "pygithub";
version = "2.1.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "PyGithub";
repo = "PyGithub";
rev = "refs/tags/v${version}";
hash = "sha256-ysa1RAWuFFQCF6bYwAUVFou7nxCKHLZbUtrUtXiSpPk=";
};
nativeBuildInputs = [
setuptools-scm
];
propagatedBuildInputs = [
deprecated
pyjwt
pynacl
python-dateutil
requests
typing-extensions
] ++ pyjwt.optional-dependencies.crypto;
# 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 ];
};
}
|