about summary refs log tree commit diff
path: root/pkgs/development/python-modules
diff options
context:
space:
mode:
authorzimbatm <zimbatm@zimbatm.com>2020-06-09 23:54:54 +0200
committerGitHub <noreply@github.com>2020-06-09 23:54:54 +0200
commit9494fdeeb323e3f969eaab717dd9b9d6b7524378 (patch)
tree40e15f19f0dc533a88d2a1a7ea3f6bffb1212965 /pkgs/development/python-modules
parent168846fa8ec3a4649aefdc7cea9b7a65e5270ece (diff)
parentcd92184f3de50335c54cec707c5fa9a40e50a3f4 (diff)
downloadnixlib-9494fdeeb323e3f969eaab717dd9b9d6b7524378.tar
nixlib-9494fdeeb323e3f969eaab717dd9b9d6b7524378.tar.gz
nixlib-9494fdeeb323e3f969eaab717dd9b9d6b7524378.tar.bz2
nixlib-9494fdeeb323e3f969eaab717dd9b9d6b7524378.tar.lz
nixlib-9494fdeeb323e3f969eaab717dd9b9d6b7524378.tar.xz
nixlib-9494fdeeb323e3f969eaab717dd9b9d6b7524378.tar.zst
nixlib-9494fdeeb323e3f969eaab717dd9b9d6b7524378.zip
Merge pull request #70327 from abbradar/synapse-plugins
Refactor Synapse plugins, add matrix-synapse-pam
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r--pkgs/development/python-modules/python-pam/default.nix23
1 files changed, 23 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/python-pam/default.nix b/pkgs/development/python-modules/python-pam/default.nix
new file mode 100644
index 000000000000..4065cd7c0145
--- /dev/null
+++ b/pkgs/development/python-modules/python-pam/default.nix
@@ -0,0 +1,23 @@
+{ stdenv, buildPythonPackage, fetchPypi, pam }:
+
+buildPythonPackage rec {
+  pname = "python-pam";
+  version = "1.8.4";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "16whhc0vr7gxsbzvsnq65nq8fs3wwmx755cavm8kkczdkz4djmn8";
+  };
+
+  postPatch = ''
+    substituteInPlace pam.py --replace 'find_library("pam")' \
+      '"${pam}/lib/libpam${stdenv.hostPlatform.extensions.sharedLibrary}"'
+  '';
+
+  meta = with stdenv.lib; {
+    description = "Python PAM module using ctypes";
+    homepage = "https://github.com/FirefighterBlu3/python-pam";
+    maintainers = with maintainers; [ abbradar ];
+    license = licenses.mit;
+  };
+}