2019-01-05 21:37:00 +00:00
|
|
|
{ stdenv, fetchPypi, fetchFromGitHub, buildPythonPackage, gssapi, pyasn1 }:
|
2017-11-02 23:36:38 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2019-01-02 21:05:40 +00:00
|
|
|
version = "2.5.2";
|
2017-11-02 23:36:38 +00:00
|
|
|
pname = "ldap3";
|
|
|
|
|
2019-01-05 21:37:00 +00:00
|
|
|
## 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";
|
2017-11-02 23:36:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ gssapi ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ pyasn1 ];
|
|
|
|
|
|
|
|
doCheck = false; # requires network
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://pypi.python.org/pypi/ldap3;
|
|
|
|
description = "A strictly RFC 4510 conforming LDAP V3 pure Python client library";
|
|
|
|
license = licenses.lgpl3;
|
|
|
|
};
|
|
|
|
}
|