@@ -1,22 +1,35 @@
1−{ stdenv, fetchFromGitHub
2−, buildPythonPackage, python-jose, pyjwt, requests, deprecated, httpretty }:
1+{ stdenv
2+, buildPythonPackage
3+, cryptography
4+, deprecated
5+, fetchFromGitHub
6+, httpretty
7+, isPy3k
8+, parameterized
9+, pyjwt
10+, pytestCheckHook
11+, requests }:
312
413buildPythonPackage rec {
514 pname = "PyGithub";
6− version = "1.45";
15+ version = "1.47";
16+ disabled = !isPy3k;
717
818 src = fetchFromGitHub {
919 owner = "PyGithub";
1020 repo = "PyGithub";
1121 rev = "v${version}";
12− sha256 = "1aiyqwdxpcr7yzz7aqmmjn1g2ajs5bpbln4sax5zw19dqi6qgp9z";
22+ sha256 = "0zvp1gib2lryw698vxkbdv40n3lsmdlhwp7vdcg41dqqa5nfryhn";
1323 };
1424
15− propagatedBuildInputs = [ python-jose pyjwt requests deprecated httpretty ];
25+ checkInputs = [ httpretty parameterized pytestCheckHook ];
26+ propagatedBuildInputs = [ cryptography deprecated pyjwt requests ];
27+
28+ # Test suite makes REST calls against github.com
1629 doCheck = false;
1730
1831 meta = with stdenv.lib; {
19− homepage = https://github.com/PyGithub/PyGithub;
32+ homepage = "https://github.com/PyGithub/PyGithub";
2033 description = "A Python (2 and 3) library to access the GitHub API v3";
2134 platforms = platforms.all;
2235 license = licenses.gpl3;