mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-08 06:24:08 +01:00
https://github.com/vsajip/python-gnupg/releases/tag/0.5.6 This commit was automatically generated using update-python-libraries.
47 lines
1.1 KiB
Nix
47 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
setuptools,
|
|
gnupg,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "python-gnupg";
|
|
version = "0.5.6";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "vsajip";
|
|
repo = "python-gnupg";
|
|
tag = finalAttrs.version;
|
|
hash = "sha256-ztwITune/rO4c3wUCsw6wBN09jnpWpElgwQx7JCXsVw=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace gnupg.py \
|
|
--replace "gpgbinary='gpg'" "gpgbinary='${lib.getExe gnupg}'"
|
|
substituteInPlace test_gnupg.py \
|
|
--replace "os.environ.get('GPGBINARY', 'gpg')" "os.environ.get('GPGBINARY', '${lib.getExe gnupg}')"
|
|
'';
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
disabledTests = [
|
|
# network access
|
|
"test_search_keys"
|
|
];
|
|
|
|
pythonImportsCheck = [ "gnupg" ];
|
|
|
|
meta = {
|
|
description = "API for the GNU Privacy Guard (GnuPG)";
|
|
homepage = "https://github.com/vsajip/python-gnupg";
|
|
changelog = "https://github.com/vsajip/python-gnupg/releases/tag/${finalAttrs.version}";
|
|
license = lib.licenses.bsd3;
|
|
maintainers = [ ];
|
|
};
|
|
})
|