python3Packages.python-gnupg: add setuptools to nativeBuildInputs

and reformat and enable tests.

authored by

Martin Weinelt and committed by
Frederik Rietdijk
b73038be 014bb5cb

+20 -1
+20 -1
pkgs/development/python-modules/python-gnupg/default.nix
··· 1 - { lib, buildPythonPackage, fetchPypi, gnupg }: 1 + { lib 2 + , buildPythonPackage 3 + , fetchPypi 4 + , setuptools 5 + , gnupg 6 + , pytestCheckHook 7 + }: 2 8 3 9 buildPythonPackage rec { 4 10 pname = "python-gnupg"; ··· 17 23 substituteInPlace test_gnupg.py \ 18 24 --replace "os.environ.get('GPGBINARY', 'gpg')" "os.environ.get('GPGBINARY', '${gnupg}/bin/gpg')" 19 25 ''; 26 + 27 + nativeBuildInputs = [ 28 + setuptools 29 + ]; 30 + 31 + checkInputs = [ 32 + pytestCheckHook 33 + ]; 34 + 35 + disabledTests = [ 36 + # network access 37 + "test_search_keys" 38 + ]; 20 39 21 40 pythonImportsCheck = [ "gnupg" ]; 22 41