8171f0da4c
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/python3.7-python-ldap/versions
32 lines
697 B
Nix
32 lines
697 B
Nix
{ buildPythonPackage, fetchPypi
|
|
, pyasn1, pyasn1-modules, pytest
|
|
, openldap, cyrus_sasl, stdenv }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "python-ldap";
|
|
version = "3.2.0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "13nvrhp85yr0jyxixcjj012iw8l9wynxxlykm9j3alss6waln73x";
|
|
};
|
|
|
|
propagatedBuildInputs = [ pyasn1 pyasn1-modules ];
|
|
|
|
buildInputs = [ openldap cyrus_sasl ];
|
|
|
|
checkInputs = [ pytest ];
|
|
|
|
checkPhase = ''
|
|
# Needed by tests to setup a mockup ldap server.
|
|
export BIN="${openldap}/bin"
|
|
export SBIN="${openldap}/bin"
|
|
export SLAPD="${openldap}/libexec/slapd"
|
|
export SCHEMA="${openldap}/etc/schema"
|
|
|
|
py.test
|
|
'';
|
|
|
|
doCheck = !stdenv.isDarwin;
|
|
}
|