diff --git a/pkgs/development/python-modules/ldap3/default.nix b/pkgs/development/python-modules/ldap3/default.nix index 22d725fac617..73957df1d9d6 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 ];