summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/pyGithub/default.nix
diff options
context:
space:
mode:
authorRobin Gloster <mail@glob.in>2021-05-24 09:55:24 -0500
committerRobin Gloster <mail@glob.in>2021-05-24 09:55:24 -0500
commit4bc5fbef9d159e143fb7e2c3231932e6e76f667c (patch)
treee2198f5c552e0667d838b8ec764ddb3a4d8f6dec /pkgs/development/python-modules/pyGithub/default.nix
parentjq: fix build with structured-attrs on darwin (diff)
parentMerge pull request #123802 from superherointj/package-virtmanager-bugfix (diff)
downloadnixpkgs-origin/structured-attrs.tar.gz
Merge remote-tracking branch 'upstream/master' into structured-attrsorigin/structured-attrs
Diffstat (limited to 'pkgs/development/python-modules/pyGithub/default.nix')
-rw-r--r--pkgs/development/python-modules/pyGithub/default.nix29
1 files changed, 17 insertions, 12 deletions
diff --git a/pkgs/development/python-modules/pyGithub/default.nix b/pkgs/development/python-modules/pyGithub/default.nix
index c214b375ff38..02656968d682 100644
--- a/pkgs/development/python-modules/pyGithub/default.nix
+++ b/pkgs/development/python-modules/pyGithub/default.nix
@@ -3,36 +3,41 @@
, cryptography
, deprecated
, fetchFromGitHub
-, httpretty
-, isPy3k
-, parameterized
+, pynacl
, pyjwt
-, pytestCheckHook
-, requests }:
+, pythonOlder
+, requests
+}:
buildPythonPackage rec {
pname = "PyGithub";
- version = "1.54.1";
- disabled = !isPy3k;
+ version = "1.55";
+ disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "PyGithub";
repo = "PyGithub";
rev = "v${version}";
- sha256 = "1nl74bp5ikdnrc8xq0qr25ryl1mvarf0xi43k8w5jzlrllhq0nkq";
+ 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 ];
};
}