Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv, buildPythonPackage, fetchPypi, pam }: 2 3buildPythonPackage rec { 4 pname = "python-pam"; 5 version = "1.8.4"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "16whhc0vr7gxsbzvsnq65nq8fs3wwmx755cavm8kkczdkz4djmn8"; 10 }; 11 12 postPatch = '' 13 substituteInPlace pam.py --replace 'find_library("pam")' \ 14 '"${pam}/lib/libpam${stdenv.hostPlatform.extensions.sharedLibrary}"' 15 ''; 16 17 meta = with stdenv.lib; { 18 description = "Python PAM module using ctypes"; 19 homepage = "https://github.com/FirefighterBlu3/python-pam"; 20 maintainers = with maintainers; [ abbradar ]; 21 license = licenses.mit; 22 }; 23}