2020-09-07 19:23:26 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pam
|
|
|
|
}:
|
2019-10-03 14:57:51 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-pam";
|
|
|
|
version = "1.8.4";
|
|
|
|
|
2020-09-07 19:23:26 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "FirefighterBlu3";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0gp7vzd332j7jwndcnz7kc9j283d6lyv32bndd1nqv9ghzv69sxp";
|
2019-10-03 14:57:51 +01:00
|
|
|
};
|
|
|
|
|
2020-09-07 19:23:26 +01:00
|
|
|
buildInputs = [
|
|
|
|
pam
|
|
|
|
];
|
|
|
|
|
2019-10-03 14:57:51 +01:00
|
|
|
postPatch = ''
|
2020-09-07 19:23:26 +01:00
|
|
|
sed "s|find_library(\"pam\")|\"${pam}/lib/libpam.so\"|g" -i pam.py
|
2019-10-03 14:57:51 +01:00
|
|
|
'';
|
|
|
|
|
2020-09-07 19:23:26 +01:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Python pam module supporting py3 (and py2)";
|
2019-10-03 14:57:51 +01:00
|
|
|
homepage = "https://github.com/FirefighterBlu3/python-pam";
|
|
|
|
license = licenses.mit;
|
2020-09-07 19:23:26 +01:00
|
|
|
maintainers = with maintainers; [ abbradar mkg20001 ];
|
2019-10-03 14:57:51 +01:00
|
|
|
};
|
|
|
|
}
|