depot/third_party/nixpkgs/pkgs/development/python-modules/python-pam/default.nix
Default email d7dbe45cea Project import generated by Copybara.
GitOrigin-RevId: 9480bae337095fd24f61380bce3174fdfe926a00
2020-06-18 09:06:33 +02:00

23 lines
633 B
Nix

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