Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / pamela / default.nix
blobeb1ebff48137e31405cbceb957cdd6194eef134c
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , pkgs
5 }:
7 buildPythonPackage rec {
8   pname = "pamela";
9   version = "1.1.0";
11   src = fetchPypi {
12     inherit pname version;
13     sha256 = "sha256-1LE5/mAOGS4Xaio2gFkgemv/oOeHmHmxP0/LoBY0gb4=";
14   };
16   postUnpack = ''
17     substituteInPlace $sourceRoot/pamela.py --replace \
18       'find_library("pam")' \
19       '"${lib.getLib pkgs.pam}/lib/libpam.so"'
20   '';
22   doCheck = false;
24   meta = with lib; {
25     description = "PAM interface using ctypes";
26     homepage = "https://github.com/minrk/pamela";
27     license = licenses.mit;
28   };