nixpkgs/pkgs/development/python-modules/pamela/default.nix
2024-10-13 11:08:57 +02:00

32 lines
599 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
pkgs,
}:
buildPythonPackage rec {
pname = "pamela";
version = "1.2.0";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-DqbiqZ3e2Md4OkoG8tMfW9ytiU15EB6PCTIuOHo0qs8=";
};
postUnpack = ''
substituteInPlace $sourceRoot/pamela.py --replace \
'find_library("pam")' \
'"${lib.getLib pkgs.pam}/lib/libpam.so"'
'';
doCheck = false;
meta = with lib; {
description = "PAM interface using ctypes";
homepage = "https://github.com/minrk/pamela";
license = licenses.mit;
};
}