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 2 , buildPythonPackage 3 3 , fetchFromGitHub 4 4 , docutils 5 + , python 5 6 , pygments 6 7 , setuptools 7 8 , requests 8 - , pytestCheckHook 9 9 }: 10 10 11 11 buildPythonPackage rec { ··· 26 26 requests 27 27 ]; 28 28 29 - checkInputs = [ 30 - pytestCheckHook 31 - ]; 32 - 33 - pytestFlagsArray = [ "pyroma/tests.py" ]; 34 - 35 - disabledTests = [ 36 - # PyPI tests require network access 37 - "PyPITest" 38 - ]; 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 + ''; 39 34 40 35 pythonImportsCheck = [ "pyroma" ]; 41 36 ··· 43 38 description = "Test your project's packaging friendliness"; 44 39 homepage = "https://github.com/regebro/pyroma"; 45 40 license = licenses.mit; 46 - maintainers = with maintainers; [ ]; 41 + maintainers = with maintainers; [ kamadorueda ]; 47 42 }; 48 43 }