python-gnupg: 0.4.0 -> 0.4.1 and enable tests

This commit is contained in:
Maximilian Güntner 2017-07-18 18:11:36 +02:00
parent 496dac571c
commit e7abb9b8ec
No known key found for this signature in database
GPG Key ID: 5D667E0FD0397CFF

View File

@ -517,11 +517,11 @@ in {
python-gnupg = buildPythonPackage rec { python-gnupg = buildPythonPackage rec {
name = "python-gnupg-${version}"; name = "python-gnupg-${version}";
version = "0.4.0"; version = "0.4.1";
src = pkgs.fetchurl { src = pkgs.fetchurl {
url = "mirror://pypi/p/python-gnupg/${name}.tar.gz"; url = "mirror://pypi/p/python-gnupg/${name}.tar.gz";
sha256 = "1yd88acafs9nwk6gzpbxjzpx0zd04qrvc6hmwhj1i89ghm2g7ap6"; sha256 = "06hfw9cmiw5306fyisp3kzg1hww260qzip829g7y7pj1mwpb0izg";
}; };
propagatedBuildInputs = [ pkgs.gnupg1 ]; propagatedBuildInputs = [ pkgs.gnupg1 ];
@ -530,10 +530,10 @@ in {
patchPhase = '' patchPhase = ''
substituteInPlace gnupg.py \ substituteInPlace gnupg.py \
--replace "gpgbinary='gpg'" "gpgbinary='${pkgs.gnupg1}/bin/gpg'" --replace "gpgbinary='gpg'" "gpgbinary='${pkgs.gnupg1}/bin/gpg'"
substituteInPlace test_gnupg.py \
--replace "gpgbinary=GPGBINARY" "gpgbinary='${pkgs.gnupg1}/bin/gpg'"
''; '';
doCheck = false;
meta = { meta = {
description = "A wrapper for the Gnu Privacy Guard"; description = "A wrapper for the Gnu Privacy Guard";
homepage = "https://pypi.python.org/pypi/python-gnupg"; homepage = "https://pypi.python.org/pypi/python-gnupg";