about summary refs log tree commit diff
path: root/pkgs/development/python-modules/pyGithub
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2021-04-27 13:18:05 +0200
committerFabian Affolter <mail@fabian-affolter.ch>2021-04-27 13:18:05 +0200
commitb95fc98718677420566f69e432352877e35d7f96 (patch)
tree43097eeb458be86e99fab472a558abe5aa1eb440 /pkgs/development/python-modules/pyGithub
parentaccee089d97e4164ade95e96cd72ee47e813b8cb (diff)
python3Packages.PyGithub: cleanup
Diffstat (limited to 'pkgs/development/python-modules/pyGithub')
-rw-r--r--pkgs/development/python-modules/pyGithub/default.nix25
1 files changed, 15 insertions, 10 deletions
diff --git a/pkgs/development/python-modules/pyGithub/default.nix b/pkgs/development/python-modules/pyGithub/default.nix
index 0fbd26c4a44af..02656968d682f 100644
--- a/pkgs/development/python-modules/pyGithub/default.nix
+++ b/pkgs/development/python-modules/pyGithub/default.nix
@@ -3,17 +3,16 @@
 , cryptography
 , deprecated
 , fetchFromGitHub
-, httpretty
-, isPy3k
-, parameterized
+, pynacl
 , pyjwt
-, pytestCheckHook
-, requests }:
+, pythonOlder
+, requests
+}:
 
 buildPythonPackage rec {
   pname = "PyGithub";
   version = "1.55";
-  disabled = !isPy3k;
+  disabled = pythonOlder "3.6";
 
   src = fetchFromGitHub {
     owner = "PyGithub";
@@ -22,17 +21,23 @@ buildPythonPackage rec {
     sha256 = "sha256-PuGCBFSbM91NtSzuyf0EQUr3LiuHDq90OwkSf53rSyA=";
   };
 
-  checkInputs = [ httpretty parameterized pytestCheckHook ];
-  propagatedBuildInputs = [ cryptography deprecated pyjwt requests ];
+  propagatedBuildInputs = [
+    cryptography
+    deprecated
+    pynacl
+    pyjwt
+    requests
+  ];
 
   # 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";
-    description = "A Python (2 and 3) library to access the GitHub API v3";
     platforms = platforms.all;
-    license = licenses.gpl3;
+    license = licenses.lgpl3Plus;
     maintainers = with maintainers; [ jhhuh ];
   };
 }