1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-04 19:45:54 +00:00
nixpkgs/pkgs/development/python-modules/pamela/default.nix

31 lines
601 B
Nix
Raw Normal View History

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