pythonPackages.python-pam: init at 1.8.4

This commit is contained in:
Nikolay Amiantov 2019-10-03 16:57:51 +03:00 committed by zimbatm
parent 79b9b7720f
commit e5e4d387e1
No known key found for this signature in database
GPG key ID: 71BAF6D40C1D63D7
2 changed files with 25 additions and 0 deletions

View file

@ -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;
};
}

View file

@ -3316,6 +3316,8 @@ in {
python-axolotl-curve25519 = callPackage ../development/python-modules/python-axolotl-curve25519 { }; python-axolotl-curve25519 = callPackage ../development/python-modules/python-axolotl-curve25519 { };
python-pam = callPackage ../development/python-modules/python-pam { };
pythonix = callPackage ../development/python-modules/pythonix { pythonix = callPackage ../development/python-modules/pythonix {
inherit (pkgs) meson pkgconfig; inherit (pkgs) meson pkgconfig;
}; };