Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / ldap3 / default.nix
blobc04ec4e49c4cb4620dd8056c92748622cd67e382
1 { lib, fetchPypi, fetchpatch, buildPythonPackage, dos2unix, pyasn1 }:
3 buildPythonPackage rec {
4   pname = "ldap3";
5   version = "2.9.1";
6   format = "setuptools";
8   src = fetchPypi {
9     inherit pname version;
10     sha256 = "f3e7fc4718e3f09dda568b57100095e0ce58633bcabbed8667ce3f8fbaa4229f";
11   };
13   prePatch = ''
14     # patch fails to apply because of line endings
15     dos2unix ldap3/utils/asn1.py
16   '';
18   patches = [
19     # fix pyasn1 0.5.0 compability
20     # https://github.com/cannatag/ldap3/pull/983
21     (fetchpatch {
22       url = "https://github.com/cannatag/ldap3/commit/ca689f4893b944806f90e9d3be2a746ee3c502e4.patch";
23       hash = "sha256-A8qI0t1OV3bkKaSdhVWHFBC9MoSkWynqxpgznV+5gh8=";
24     })
25   ];
27   nativeBuildInputs = [ dos2unix ];
29   propagatedBuildInputs = [ pyasn1 ];
31   doCheck = false; # requires network
33   meta = with lib; {
34     homepage = "https://pypi.python.org/pypi/ldap3";
35     description = "A strictly RFC 4510 conforming LDAP V3 pure Python client library";
36     license = licenses.lgpl3;
37     maintainers = with maintainers; [ ];
38   };