2021-01-24 00:29:22 +00:00
|
|
|
{ lib
|
2018-10-16 15:24:43 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pkgs
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pamela";
|
2019-02-14 07:37:22 +00:00
|
|
|
version = "1.0.0";
|
2018-10-16 15:24:43 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-02-14 07:37:22 +00:00
|
|
|
sha256 = "65c9389bef7d1bb0b168813b6be21964df32016923aac7515bdf05366acbab6c";
|
2018-10-16 15:24:43 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
postUnpack = ''
|
|
|
|
substituteInPlace $sourceRoot/pamela.py --replace \
|
|
|
|
'find_library("pam")' \
|
2021-01-24 00:29:22 +00:00
|
|
|
'"${lib.getLib pkgs.pam}/lib/libpam.so"'
|
2018-10-16 15:24:43 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-10-16 15:24:43 +01:00
|
|
|
description = "PAM interface using ctypes";
|
|
|
|
homepage = "https://github.com/minrk/pamela";
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|