From 6cbdd8640a7cb1c64e1014ac9ad4816aecab6385 Mon Sep 17 00:00:00 2001 From: Robin Gloster Date: Tue, 21 Apr 2020 13:36:07 +0200 Subject: [PATCH] python.pkgs.privacyidea-ldap-proxy: init at 0.6.1 --- pkgs/servers/privacyidea/ldap-proxy.nix | 23 +++++++++++++++++++++++ pkgs/top-level/python-packages.nix | 1 + 2 files changed, 24 insertions(+) create mode 100644 pkgs/servers/privacyidea/ldap-proxy.nix diff --git a/pkgs/servers/privacyidea/ldap-proxy.nix b/pkgs/servers/privacyidea/ldap-proxy.nix new file mode 100644 index 000000000000..bf15acb294e6 --- /dev/null +++ b/pkgs/servers/privacyidea/ldap-proxy.nix @@ -0,0 +1,23 @@ +{ lib, buildPythonPackage, fetchFromGitHub, twisted, ldaptor, configobj }: + +buildPythonPackage rec { + pname = "privacyidea-ldap-proxy"; + version = "0.6.1"; + + src = fetchFromGitHub { + owner = "privacyidea"; + repo = pname; + rev = "v${version}"; + sha256 = "1kc1n9wr1a66xd5zvl6dq78xnkqkn5574jpzashc99pvm62dr24j"; + }; + + propagatedBuildInputs = [ twisted ldaptor configobj ]; + doCheck = false; + + meta = with lib; { + description = "LDAP Proxy to intercept LDAP binds and authenticate against privacyIDEA"; + homepage = "https://github.com/privacyidea/privacyidea-ldap-proxy"; + license = licenses.agpl3; + maintainers = [ maintainers.globin ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index bbb246a6082c..7b246c6ce0a4 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3198,6 +3198,7 @@ in { priority = callPackage ../development/python-modules/priority { }; privacyidea = callPackage ../servers/privacyidea { }; + privacyidea-ldap-proxy = callPackage ../servers/privacyidea/ldap-proxy.nix { }; prov = callPackage ../development/python-modules/prov { };