diff options
author | Kevin Amado <kamadorueda@gmail.com> | 2021-08-15 13:27:06 -0500 |
---|---|---|
committer | Kevin Amado <kamadorueda@gmail.com> | 2021-08-23 12:48:07 -0500 |
commit | 9a58eb6fc6e91fc498e789a80226f6efff45c5d3 (patch) | |
tree | cdd16ed2943875ec23396db5777e02e23215e079 /pkgs/development/python-modules/pyroma | |
parent | 4ff3577f25b3f742d9f39275cf39c21c33cb5e5a (diff) |
pythonPackages.pyroma: fix tests phase
- The package was not building due to an infinite recursion error in pytest - After looking how they the package owners test it I discover they use unittest module instead of pytest - Rewrite so it uses unittest
Diffstat (limited to 'pkgs/development/python-modules/pyroma')
-rw-r--r-- | pkgs/development/python-modules/pyroma/default.nix | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/pkgs/development/python-modules/pyroma/default.nix b/pkgs/development/python-modules/pyroma/default.nix index 03eea0b8b5e94..9d2c220c472f8 100644 --- a/pkgs/development/python-modules/pyroma/default.nix +++ b/pkgs/development/python-modules/pyroma/default.nix @@ -2,10 +2,10 @@ , buildPythonPackage , fetchFromGitHub , docutils +, python , pygments , setuptools , requests -, pytestCheckHook }: buildPythonPackage rec { @@ -26,16 +26,11 @@ buildPythonPackage rec { requests ]; - checkInputs = [ - pytestCheckHook - ]; - - pytestFlagsArray = [ "pyroma/tests.py" ]; - - disabledTests = [ - # PyPI tests require network access - "PyPITest" - ]; + # https://github.com/regebro/pyroma/blob/3.2/Makefile#L23 + # PyPITest requires network access + checkPhase = '' + ${python.interpreter} -m unittest -k 'not PyPITest' pyroma.tests + ''; pythonImportsCheck = [ "pyroma" ]; @@ -43,6 +38,6 @@ buildPythonPackage rec { description = "Test your project's packaging friendliness"; homepage = "https://github.com/regebro/pyroma"; license = licenses.mit; - maintainers = with maintainers; [ ]; + maintainers = with maintainers; [ kamadorueda ]; }; } |