Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-19.03 29 lines 828 B view raw
1{ stdenv, fetchPypi, fetchFromGitHub, buildPythonPackage, pyasn1 }: 2 3buildPythonPackage rec { 4 version = "2.5.2"; 5 pname = "ldap3"; 6 7## This should work, but 2.5.2 has a weird tarball with empty source files 8## where upstream repository has non-empty ones 9# src = fetchPypi { 10# inherit pname version; 11# sha256 = "063dacy01mphc3n7z2qc2avykjavqm1gllkbvy7xzw5ihlqwhrrz"; 12# }; 13 src = fetchFromGitHub { 14 owner = "cannatag"; 15 repo = pname; 16 rev = "v${version}"; 17 sha256 = "0p5l4bhy6j2nvvlxz5zvznbaqb72x791v9la2jr2wpwr60mzz9hw"; 18 }; 19 20 propagatedBuildInputs = [ pyasn1 ]; 21 22 doCheck = false; # requires network 23 24 meta = with stdenv.lib; { 25 homepage = https://pypi.python.org/pypi/ldap3; 26 description = "A strictly RFC 4510 conforming LDAP V3 pure Python client library"; 27 license = licenses.lgpl3; 28 }; 29}