python3Packages.python-gnupg: add setuptools to nativeBuildInputs
and reformat and enable tests.
This commit is contained in:
committed by
Frederik Rietdijk
parent
014bb5cb7d
commit
b73038be33
@@ -1,4 +1,10 @@
|
||||
{ lib, buildPythonPackage, fetchPypi, gnupg }:
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, setuptools
|
||||
, gnupg
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "python-gnupg";
|
||||
@@ -18,6 +24,19 @@ buildPythonPackage rec {
|
||||
--replace "os.environ.get('GPGBINARY', 'gpg')" "os.environ.get('GPGBINARY', '${gnupg}/bin/gpg')"
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
disabledTests = [
|
||||
# network access
|
||||
"test_search_keys"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "gnupg" ];
|
||||
|
||||
meta = with lib; {
|
||||
|
||||
Reference in New Issue
Block a user