mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 12:29:02 +02:00
python3Packages.python-gnupg: 0.4.8 -> 0.4.9
This commit is contained in:
parent
d3d4c8e409
commit
f4266d8163
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue