mediawiki: 1.42.4 -> 1.43.0 (#369641)
[NixPkgs.git] / pkgs / servers / matrix-synapse / plugins / ldap3.nix
blobfa38d1f7b7726bd18adbfaa916567a181a9d2190
2   lib,
3   buildPythonPackage,
4   fetchpatch,
5   fetchPypi,
6   ldap3,
7   ldaptor,
8   matrix-synapse-unwrapped,
9   pytestCheckHook,
10   service-identity,
11   setuptools,
12   twisted,
15 buildPythonPackage rec {
16   pname = "matrix-synapse-ldap3";
17   version = "0.2.2";
18   format = "pyproject";
20   src = fetchPypi {
21     inherit pname version;
22     hash = "sha256-s4jZVpNIbu9pra79D9noRGPVL+F7AhSgDvyqZptzy3Q=";
23   };
25   patches = [
26     # add support to read bind_password from file
27     (fetchpatch {
28       url = "https://github.com/matrix-org/matrix-synapse-ldap3/commit/c65e8cbd27a5cd935ce12e7c4b92143cdf795c86.patch";
29       sha256 = "sha256-0g150TW631cuupSRECXL9A261nj45HclDkHBUbKT7jE=";
30     })
31   ];
33   nativeBuildInputs = [ setuptools ];
35   propagatedBuildInputs = [
36     service-identity
37     ldap3
38     twisted
39   ];
41   nativeCheckInputs = [
42     ldaptor
43     matrix-synapse-unwrapped
44     pytestCheckHook
45   ];
47   pythonImportsCheck = [ "ldap_auth_provider" ];
49   meta = with lib; {
50     description = "LDAP3 auth provider for Synapse";
51     homepage = "https://github.com/matrix-org/matrix-synapse-ldap3";
52     license = licenses.asl20;
53     maintainers = with maintainers; [ ] ++ teams.c3d2.members;
54   };