ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / privacyidea-ldap-proxy / default.nix
blob417113537b9c332e41b4ceff30e405a7ea8544ee
1 { lib, buildPythonPackage, fetchFromGitHub, twisted, ldaptor, configobj, fetchpatch }:
3 buildPythonPackage rec {
4   pname = "privacyidea-ldap-proxy";
5   version = "0.7";
7   src = fetchFromGitHub {
8     owner = "privacyidea";
9     repo = pname;
10     rev = "v${version}";
11     sha256 = "1i2kgxqd38xvb42qj0a4a35w4vk0fyp3n7w48kqmvrxc77p6r6i8";
12   };
14   patches = [
15     # support for LDAPCompareRequest.
16     (fetchpatch {
17       url = "https://github.com/mayflower/privacyidea-ldap-proxy/commit/a13356717379b174f1a6abf767faa0dbd459f5dd.patch";
18       sha256 = "sha256-SBTj9ayQ8JFD8BoYIl77nxWVV3PXnHZ8JMlJnxd/nEk=";
19     })
20   ];
22   propagatedBuildInputs = [ twisted ldaptor configobj ];
24   pythonImportsCheck = [ "pi_ldapproxy" ];
26   meta = with lib; {
27     description = "LDAP Proxy to intercept LDAP binds and authenticate against privacyIDEA";
28     homepage = "https://github.com/privacyidea/privacyidea-ldap-proxy";
29     license = licenses.agpl3Only;
30     maintainers = [ maintainers.globin ];
31   };