1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-04 14:52:34 +03:00
nixpkgs/pkgs/development/python-modules/python-ldap/default.nix

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

54 lines
965 B
Nix
Raw Normal View History

{ lib
, stdenv
, buildPythonPackage
, fetchPypi
, pyasn1
, pyasn1-modules
, pythonAtLeast
, pythonOlder
, pytestCheckHook
, openldap
, cyrus_sasl
}:
2017-01-13 16:21:37 +01:00
buildPythonPackage rec {
pname = "python-ldap";
version = "3.4.2";
disabled = pythonOlder "3.6";
2017-01-13 16:21:37 +01:00
src = fetchPypi {
inherit pname version;
hash = "sha256-sWRwoJg6rwmgD/uPQLaaJEbz0L5jmiKSVrzjgfyyaPc=";
2017-01-13 16:21:37 +01:00
};
buildInputs = [
openldap
cyrus_sasl
];
propagatedBuildInputs = [
pyasn1
pyasn1-modules
];
2018-04-06 21:39:52 +02:00
checkInputs = [
pytestCheckHook
];
2018-04-06 21:39:52 +02:00
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"
'';
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
}