depot/third_party/nixpkgs/pkgs/development/python-modules/pamela/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

31 lines
599 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
pkgs,
}:
buildPythonPackage rec {
pname = "pamela";
version = "1.1.0";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-1LE5/mAOGS4Xaio2gFkgemv/oOeHmHmxP0/LoBY0gb4=";
};
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;
};
}