Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv, buildPythonPackage, fetchPypi, gnupg1 }: 2 3buildPythonPackage rec { 4 pname = "python-gnupg"; 5 version = "0.4.4"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "45daf020b370bda13a1429c859fcdff0b766c0576844211446f9266cae97fb0e"; 10 }; 11 12 # Let's make the library default to our gpg binary 13 patchPhase = '' 14 substituteInPlace gnupg.py \ 15 --replace "gpgbinary='gpg'" "gpgbinary='${gnupg1}/bin/gpg'" 16 substituteInPlace test_gnupg.py \ 17 --replace "gpgbinary=GPGBINARY" "gpgbinary='${gnupg1}/bin/gpg'" \ 18 --replace "test_search_keys" "disabled__test_search_keys" 19 ''; 20 21 meta = with stdenv.lib; { 22 description = "A wrapper for the Gnu Privacy Guard"; 23 homepage = https://pypi.python.org/pypi/python-gnupg; 24 license = licenses.bsd3; 25 maintainers = with maintainers; [ copumpkin ]; 26 platforms = platforms.unix; 27 }; 28}