mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-23 05:14:45 +00:00
python3Packages.python-pam: 1.8.4 -> 2.0.2
This commit is contained in:
parent
7ecc80e254
commit
85848d12e4
@ -2,29 +2,41 @@
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pam
|
||||
, six
|
||||
, toml
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "python-pam";
|
||||
version = "1.8.4";
|
||||
version = "2.0.2";
|
||||
format = "pyproject";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "FirefighterBlu3";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "0gp7vzd332j7jwndcnz7kc9j283d6lyv32bndd1nqv9ghzv69sxp";
|
||||
rev = "refs/tags/v${version}";
|
||||
sha256 = "sha256-MR9LYXtkbltAmn7yoyyKZn4yMHyh3rj/i/pA8nJy2xU=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace src/pam/__internals.py \
|
||||
--replace 'find_library("pam")' '"${pam}/lib/libpam.so"' \
|
||||
--replace 'find_library("pam_misc")' '"${pam}/lib/libpam_misc.so"'
|
||||
'';
|
||||
|
||||
buildInputs = [
|
||||
pam
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
sed "s|find_library(\"pam\")|\"${pam}/lib/libpam.so\"|g" -i pam.py
|
||||
'';
|
||||
propagatedBuildInputs = [
|
||||
six
|
||||
toml
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "pam" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python pam module supporting py3 (and py2)";
|
||||
description = "Python pam module";
|
||||
homepage = "https://github.com/FirefighterBlu3/python-pam";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ abbradar mkg20001 ];
|
||||
|
Loading…
Reference in New Issue
Block a user