python3Packages.python-gnupg: 0.4.8 -> 0.4.9

This commit is contained in:
Martin Weinelt 2022-07-16 12:59:30 +02:00
parent d3d4c8e409
commit f4266d8163

View file

@ -1,28 +1,29 @@
{ lib, buildPythonPackage, fetchPypi, gnupg }:
buildPythonPackage rec {
pname = "python-gnupg";
version = "0.4.8";
pname = "python-gnupg";
version = "0.4.9";
format = "pyproject";
src = fetchPypi {
inherit pname version;
sha256 = "b64de1ae5cedf872b437201a566fa2c62ce0c95ea2e30177eb53aee1258507d7";
sha256 = "sha256-qqdIeVVyWRqvEntKyJhWhPNnP/grOfNwyDawBuaPxTc=";
};
# Let's make the library default to our gpg binary
patchPhase = ''
postPatch = ''
substituteInPlace gnupg.py \
--replace "gpgbinary='gpg'" "gpgbinary='${gnupg}/bin/gpg'"
--replace "gpgbinary='gpg'" "gpgbinary='${gnupg}/bin/gpg'"
substituteInPlace test_gnupg.py \
--replace "gpgbinary=GPGBINARY" "gpgbinary='${gnupg}/bin/gpg'" \
--replace "test_search_keys" "disabled__test_search_keys"
--replace "os.environ.get('GPGBINARY', 'gpg')" "os.environ.get('GPGBINARY', '${gnupg}/bin/gpg')"
'';
pythonImportsCheck = [ "gnupg" ];
meta = with lib; {
description = "A wrapper for the Gnu Privacy Guard";
homepage = "https://pypi.python.org/pypi/python-gnupg";
license = licenses.bsd3;
description = "API for the GNU Privacy Guard (GnuPG)";
homepage = "https://github.com/vsajip/python-gnupg";
license = licenses.bsd3;
maintainers = with maintainers; [ copumpkin ];
platforms = platforms.unix;
};
}