mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-03 11:33:31 +00:00
32 lines
599 B
Nix
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;
|
|
};
|
|
}
|