mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 20:39:04 +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 }:
|
{ lib, buildPythonPackage, fetchPypi, gnupg }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "python-gnupg";
|
pname = "python-gnupg";
|
||||||
version = "0.4.8";
|
version = "0.4.9";
|
||||||
|
|
||||||
|
format = "pyproject";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "b64de1ae5cedf872b437201a566fa2c62ce0c95ea2e30177eb53aee1258507d7";
|
sha256 = "sha256-qqdIeVVyWRqvEntKyJhWhPNnP/grOfNwyDawBuaPxTc=";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Let's make the library default to our gpg binary
|
postPatch = ''
|
||||||
patchPhase = ''
|
|
||||||
substituteInPlace gnupg.py \
|
substituteInPlace gnupg.py \
|
||||||
--replace "gpgbinary='gpg'" "gpgbinary='${gnupg}/bin/gpg'"
|
--replace "gpgbinary='gpg'" "gpgbinary='${gnupg}/bin/gpg'"
|
||||||
substituteInPlace test_gnupg.py \
|
substituteInPlace test_gnupg.py \
|
||||||
--replace "gpgbinary=GPGBINARY" "gpgbinary='${gnupg}/bin/gpg'" \
|
--replace "os.environ.get('GPGBINARY', 'gpg')" "os.environ.get('GPGBINARY', '${gnupg}/bin/gpg')"
|
||||||
--replace "test_search_keys" "disabled__test_search_keys"
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "gnupg" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A wrapper for the Gnu Privacy Guard";
|
description = "API for the GNU Privacy Guard (GnuPG)";
|
||||||
homepage = "https://pypi.python.org/pypi/python-gnupg";
|
homepage = "https://github.com/vsajip/python-gnupg";
|
||||||
license = licenses.bsd3;
|
license = licenses.bsd3;
|
||||||
maintainers = with maintainers; [ copumpkin ];
|
maintainers = with maintainers; [ copumpkin ];
|
||||||
platforms = platforms.unix;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue