phaer b349e80087 treewide: drop copumpkin from maintainers
Their last commit is from March 28th 2019, about 6 years ago.

This PR is in no way intended to diminish Daniels's accomplishments, and they're welcome to just say so if they'd prefer this PR not to be merged. Also, even if it's merged, of course they're always welcome to return to activity and be added back. The intent of this PR is to give more realistic expectations around the maintainership of these packages, and to invite others to step up for maintainership if they rely on those packages.

If this is merged, they should probably also be removed from the list
of committers for the time being.
2025-03-23 20:07:15 +01:00

47 lines
1.0 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
setuptools,
gnupg,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "python-gnupg";
version = "0.5.4";
format = "pyproject";
src = fetchPypi {
inherit pname version;
hash = "sha256-8v21+ylhXHfCdD4cs9kxQ1Om6HsQw30jjZGuHG/q4IY=";
};
postPatch = ''
substituteInPlace gnupg.py \
--replace "gpgbinary='gpg'" "gpgbinary='${gnupg}/bin/gpg'"
substituteInPlace test_gnupg.py \
--replace "os.environ.get('GPGBINARY', 'gpg')" "os.environ.get('GPGBINARY', '${gnupg}/bin/gpg')"
'';
nativeBuildInputs = [ setuptools ];
nativeCheckInputs = [ pytestCheckHook ];
disabledTests = [
# network access
"test_search_keys"
];
pythonImportsCheck = [ "gnupg" ];
meta = with lib; {
description = "API for the GNU Privacy Guard (GnuPG)";
homepage = "https://github.com/vsajip/python-gnupg";
changelog = "https://github.com/vsajip/python-gnupg/releases/tag/${version}";
license = licenses.bsd3;
maintainers = [ ];
};
}