about summary refs log tree commit diff
path: root/pkgs/development/python-modules/ldap3
diff options
context:
space:
mode:
authorMichael Raskin <7c6f434c@mail.ru>2019-01-05 22:37:00 +0100
committerMichael Raskin <7c6f434c@mail.ru>2019-01-05 22:37:00 +0100
commitf27fe449b10c65830a2f27cae5d3213077b6f07e (patch)
tree27c3a2e8ed717c85fb53bbdf6577a1769b4c6f0b /pkgs/development/python-modules/ldap3
parente6aa4d76eda9fe29403a9406fb98c0b4148c3b7d (diff)
pythonPackages.ldap3: switch src to fetchFromGitHub
PyPI links to a source tarball at PythonHosted that has an empty
ldap3/protocol/sasl/digestMd5.py
while the linked egg file has a non-empty file (and the upstream GitHub
repository has a non-empty file that hasn't even had a non-comment
change for some time.
Diffstat (limited to 'pkgs/development/python-modules/ldap3')
-rw-r--r--pkgs/development/python-modules/ldap3/default.nix16
1 files changed, 12 insertions, 4 deletions
diff --git a/pkgs/development/python-modules/ldap3/default.nix b/pkgs/development/python-modules/ldap3/default.nix
index 22d725fac6171..73957df1d9d69 100644
--- a/pkgs/development/python-modules/ldap3/default.nix
+++ b/pkgs/development/python-modules/ldap3/default.nix
@@ -1,12 +1,20 @@
-{ stdenv, fetchPypi, buildPythonPackage, gssapi, pyasn1 }:
+{ stdenv, fetchPypi, fetchFromGitHub, buildPythonPackage, gssapi, pyasn1 }:
 
 buildPythonPackage rec {
   version = "2.5.2";
   pname = "ldap3";
 
-  src = fetchPypi {
-    inherit pname version;
-    sha256 = "063dacy01mphc3n7z2qc2avykjavqm1gllkbvy7xzw5ihlqwhrrz";
+## This should work, but 2.5.2 has a weird tarball with empty source files
+## where upstream repository has non-empty ones
+# src = fetchPypi {
+#   inherit pname version;
+#   sha256 = "063dacy01mphc3n7z2qc2avykjavqm1gllkbvy7xzw5ihlqwhrrz";
+# };
+  src = fetchFromGitHub {
+    owner = "cannatag";
+    repo = pname;
+    rev = "v${version}";
+    sha256 = "0p5l4bhy6j2nvvlxz5zvznbaqb72x791v9la2jr2wpwr60mzz9hw";
   };
 
   buildInputs = [ gssapi ];