aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/servers/matrix-synapse/plugins/ldap3.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/servers/matrix-synapse/plugins/ldap3.nix')
-rw-r--r--nixpkgs/pkgs/servers/matrix-synapse/plugins/ldap3.nix17
1 files changed, 17 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/servers/matrix-synapse/plugins/ldap3.nix b/nixpkgs/pkgs/servers/matrix-synapse/plugins/ldap3.nix
new file mode 100644
index 00000000000..9f1aec20033
--- /dev/null
+++ b/nixpkgs/pkgs/servers/matrix-synapse/plugins/ldap3.nix
@@ -0,0 +1,17 @@
+{ isPy3k, buildPythonPackage, fetchPypi, service-identity, ldap3, twisted, ldaptor, mock }:
+
+buildPythonPackage rec {
+ pname = "matrix-synapse-ldap3";
+ version = "0.1.4";
+
+ src = fetchPypi {
+ inherit pname version;
+ sha256 = "01bms89sl16nyh9f141idsz4mnhxvjrc3gj721wxh1fhikps0djx";
+ };
+
+ propagatedBuildInputs = [ service-identity ldap3 twisted ];
+
+ # ldaptor is not ready for py3 yet
+ doCheck = !isPy3k;
+ checkInputs = [ ldaptor mock ];
+}