blob: 6a631f4f262f0344739122c13a33d3a8b9684a88 (
plain) (
blame)
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
|
{ lib
, buildPythonPackage
, fetchpatch
, fetchPypi
, ldap3
, ldaptor
, matrix-synapse-unwrapped
, pytestCheckHook
, service-identity
, setuptools
, twisted
}:
buildPythonPackage rec {
pname = "matrix-synapse-ldap3";
version = "0.2.2";
format = "pyproject";
src = fetchPypi {
inherit pname version;
hash = "sha256-s4jZVpNIbu9pra79D9noRGPVL+F7AhSgDvyqZptzy3Q=";
};
patches = [
# add support to read bind_password from file
(fetchpatch {
url = "https://github.com/matrix-org/matrix-synapse-ldap3/commit/c65e8cbd27a5cd935ce12e7c4b92143cdf795c86.patch";
sha256 = "sha256-0g150TW631cuupSRECXL9A261nj45HclDkHBUbKT7jE=";
})
];
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [ service-identity ldap3 twisted ];
nativeCheckInputs = [ ldaptor matrix-synapse-unwrapped pytestCheckHook ];
pythonImportsCheck = [ "ldap_auth_provider" ];
meta = with lib; {
description = "LDAP3 auth provider for Synapse";
homepage = "https://github.com/matrix-org/matrix-synapse-ldap3";
license = licenses.asl20;
maintainers = with maintainers; [ ] ++ teams.c3d2.members;
};
}
|