1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-18 23:50:07 +03:00
nixpkgs/pkgs/development/python-modules/ldap/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
1 KiB
Nix
Raw Normal View History

{ buildPythonPackage, fetchPypi
, pyasn1, pyasn1-modules
, pythonAtLeast, pytestCheckHook
, openldap, cyrus_sasl, lib, stdenv }:
2017-01-13 16:21:37 +01:00
buildPythonPackage rec {
pname = "python-ldap";
2021-12-06 13:16:42 +00:00
version = "3.4.0";
2017-01-13 16:21:37 +01:00
src = fetchPypi {
inherit pname version;
2021-12-06 13:16:42 +00:00
sha256 = "60464c8fc25e71e0fd40449a24eae482dcd0fb7fcf823e7de627a6525b3e0d12";
2017-01-13 16:21:37 +01:00
};
2018-04-06 21:39:52 +02:00
propagatedBuildInputs = [ pyasn1 pyasn1-modules ];
checkInputs = [ pytestCheckHook ];
2018-04-06 21:39:52 +02:00
buildInputs = [ openldap cyrus_sasl ];
preCheck = ''
2017-08-29 09:14:53 +01:00
# 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"
'';
disabledTests = lib.optionals (pythonAtLeast "3.9") [
# See https://github.com/python-ldap/python-ldap/issues/407
"test_simple_bind_noarg"
];
doCheck = !stdenv.isDarwin;
2019-04-05 19:16:24 +02:00
meta = with lib; {
2019-04-05 19:16:24 +02:00
description = "Python modules for implementing LDAP clients";
homepage = "https://www.python-ldap.org/";
2019-04-05 19:16:24 +02:00
license = licenses.psfl;
};
2017-01-13 16:21:37 +01:00
}