Merge pull request #134261 from kamadorueda/master

pythonPackages.pyroma: fix tests phase

authored by

Sandro and committed by
GitHub
1988839b 929f1950

+7 -12
+7 -12
pkgs/development/python-modules/pyroma/default.nix
··· 2 , buildPythonPackage 3 , fetchFromGitHub 4 , docutils 5 , pygments 6 , setuptools 7 , requests 8 - , pytestCheckHook 9 }: 10 11 buildPythonPackage rec { ··· 26 requests 27 ]; 28 29 - checkInputs = [ 30 - pytestCheckHook 31 - ]; 32 - 33 - pytestFlagsArray = [ "pyroma/tests.py" ]; 34 - 35 - disabledTests = [ 36 - # PyPI tests require network access 37 - "PyPITest" 38 - ]; 39 40 pythonImportsCheck = [ "pyroma" ]; 41 ··· 43 description = "Test your project's packaging friendliness"; 44 homepage = "https://github.com/regebro/pyroma"; 45 license = licenses.mit; 46 - maintainers = with maintainers; [ ]; 47 }; 48 }
··· 2 , buildPythonPackage 3 , fetchFromGitHub 4 , docutils 5 + , python 6 , pygments 7 , setuptools 8 , requests 9 }: 10 11 buildPythonPackage rec { ··· 26 requests 27 ]; 28 29 + # https://github.com/regebro/pyroma/blob/3.2/Makefile#L23 30 + # PyPITest requires network access 31 + checkPhase = '' 32 + ${python.interpreter} -m unittest -k 'not PyPITest' pyroma.tests 33 + ''; 34 35 pythonImportsCheck = [ "pyroma" ]; 36 ··· 38 description = "Test your project's packaging friendliness"; 39 homepage = "https://github.com/regebro/pyroma"; 40 license = licenses.mit; 41 + maintainers = with maintainers; [ kamadorueda ]; 42 }; 43 }