1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-01 05:19:17 +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.

61 lines
1.1 KiB
Nix
Raw Normal View History

{ lib
, stdenv
, buildPythonPackage
, fetchFromGitHub
, 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.3";
disabled = pythonOlder "3.6";
2017-01-13 16:21:37 +01:00
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "refs/tags/python-ldap-${version}";
hash = "sha256-/ehvSs2qjuTPhaaOP0agPbWyyRugBpUlPq/Ny9t2C58=";
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"
'';
disabledTests = [
# https://github.com/python-ldap/python-ldap/issues/501
"test_tls_ext_noca"
];
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
}