From f4266d81639c46b994aabe8b52a01adfc03460ee Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sat, 16 Jul 2022 12:59:30 +0200 Subject: [PATCH] python3Packages.python-gnupg: 0.4.8 -> 0.4.9 --- .../python-modules/python-gnupg/default.nix | 25 ++++++++++--------- 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/pkgs/development/python-modules/python-gnupg/default.nix b/pkgs/development/python-modules/python-gnupg/default.nix index e26e60c43ec4..3ece771e7b5f 100644 --- a/pkgs/development/python-modules/python-gnupg/default.nix +++ b/pkgs/development/python-modules/python-gnupg/default.nix @@ -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; }; }