1{ stdenv
2, buildPythonPackage
3, cryptography
4, deprecated
5, fetchFromGitHub
6, httpretty
7, isPy3k
8, parameterized
9, pyjwt
10, pytestCheckHook
11, requests }:
12
13buildPythonPackage rec {
14 pname = "PyGithub";
15 version = "1.51";
16 disabled = !isPy3k;
17
18 src = fetchFromGitHub {
19 owner = "PyGithub";
20 repo = "PyGithub";
21 rev = "v${version}";
22 sha256 = "1hz5fc3rkryl4vzxmmwx75p25wk0ida54lf6bz7261rm5hb05r7j";
23 };
24
25 checkInputs = [ httpretty parameterized pytestCheckHook ];
26 propagatedBuildInputs = [ cryptography deprecated pyjwt requests ];
27
28 # Test suite makes REST calls against github.com
29 doCheck = false;
30
31 meta = with stdenv.lib; {
32 homepage = "https://github.com/PyGithub/PyGithub";
33 description = "A Python (2 and 3) library to access the GitHub API v3";
34 platforms = platforms.all;
35 license = licenses.gpl3;
36 maintainers = with maintainers; [ jhhuh ];
37 };
38}