2021-01-25 00:26:54 -08:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, gnupg }:
|
2017-07-18 14:37:56 -07:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-gnupg";
|
2021-03-24 02:28:25 -07:00
|
|
|
version = "0.4.7";
|
2017-07-18 14:37:56 -07:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-03-24 02:28:25 -07:00
|
|
|
sha256 = "2061f56b1942c29b92727bf9aecbd3cea3893acc9cccbdc7eb4604285efe4ac7";
|
2017-07-18 14:37:56 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
# Let's make the library default to our gpg binary
|
|
|
|
patchPhase = ''
|
|
|
|
substituteInPlace gnupg.py \
|
2019-03-20 11:23:30 -07:00
|
|
|
--replace "gpgbinary='gpg'" "gpgbinary='${gnupg}/bin/gpg'"
|
2017-07-18 14:37:56 -07:00
|
|
|
substituteInPlace test_gnupg.py \
|
2019-03-20 11:23:30 -07:00
|
|
|
--replace "gpgbinary=GPGBINARY" "gpgbinary='${gnupg}/bin/gpg'" \
|
2017-09-23 09:58:19 -07:00
|
|
|
--replace "test_search_keys" "disabled__test_search_keys"
|
2017-07-18 14:37:56 -07:00
|
|
|
'';
|
|
|
|
|
2021-01-10 23:54:33 -08:00
|
|
|
meta = with lib; {
|
2017-07-18 14:37:56 -07:00
|
|
|
description = "A wrapper for the Gnu Privacy Guard";
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://pypi.python.org/pypi/python-gnupg";
|
2017-07-18 14:37:56 -07:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ copumpkin ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|