blob: b1dc6f1e68382491ef74432c771557da5082f9ae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
distutils,
setuptools,
# native dependencies
openldap,
cyrus_sasl,
pyasn1,
pyasn1-modules,
# tests
pytestCheckHook,
jaraco-functools,
}:
buildPythonPackage rec {
pname = "python-ldap";
version = "3.4.5";
pyproject = true;
src = fetchFromGitHub {
owner = "python-ldap";
repo = "python-ldap";
tag = "python-ldap-${version}";
hash = "sha256-olRu5HacRKaAcNbQczA+UCbDxhySUOO7qH0KdWlSbT0=";
};
postPatch = ''
# unused in 3.4.5; https://github.com/python-ldap/python-ldap/pull/597
sed -i "/setuptools-scm/d" pyproject.toml
'';
build-system = [
distutils
setuptools
];
buildInputs = [
openldap
cyrus_sasl
];
dependencies = [
pyasn1
pyasn1-modules
];
nativeCheckInputs = [
jaraco-functools
pytestCheckHook
];
preCheck = ''
# 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"
];
__darwinAllowLocalNetworking = true;
meta = {
description = "Python modules for implementing LDAP clients";
downloadPage = "https://github.com/python-ldap/python-ldap";
homepage = "https://www.python-ldap.org/";
changelog = "https://github.com/python-ldap/python-ldap/releases/tag/python-ldap-${version}";
license = lib.licenses.psfl;
maintainers = [ ];
};
}
|