1{ lib
2, buildPythonPackage
3, cryptography
4, deprecated
5, fetchFromGitHub
6, pynacl
7, pyjwt
8, pythonOlder
9, requests
10}:
11
12buildPythonPackage rec {
13 pname = "PyGithub";
14 version = "1.55";
15 disabled = pythonOlder "3.6";
16
17 src = fetchFromGitHub {
18 owner = "PyGithub";
19 repo = "PyGithub";
20 rev = "v${version}";
21 sha256 = "sha256-PuGCBFSbM91NtSzuyf0EQUr3LiuHDq90OwkSf53rSyA=";
22 };
23
24 propagatedBuildInputs = [
25 cryptography
26 deprecated
27 pynacl
28 pyjwt
29 requests
30 ];
31
32 # Test suite makes REST calls against github.com
33 doCheck = false;
34 pythonImportsCheck = [ "github" ];
35
36 meta = with lib; {
37 description = "Python library to access the GitHub API v3";
38 homepage = "https://github.com/PyGithub/PyGithub";
39 platforms = platforms.all;
40 license = licenses.lgpl3Plus;
41 maintainers = with maintainers; [ jhhuh ];
42 };
43}