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
This commit is contained in:
parent
4ff3577f25
commit
9a58eb6fc6
1 changed files with 7 additions and 12 deletions
|
@ -2,10 +2,10 @@
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, docutils
|
, docutils
|
||||||
|
, python
|
||||||
, pygments
|
, pygments
|
||||||
, setuptools
|
, setuptools
|
||||||
, requests
|
, requests
|
||||||
, pytestCheckHook
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
|
@ -26,16 +26,11 @@ buildPythonPackage rec {
|
||||||
requests
|
requests
|
||||||
];
|
];
|
||||||
|
|
||||||
checkInputs = [
|
# https://github.com/regebro/pyroma/blob/3.2/Makefile#L23
|
||||||
pytestCheckHook
|
# PyPITest requires network access
|
||||||
];
|
checkPhase = ''
|
||||||
|
${python.interpreter} -m unittest -k 'not PyPITest' pyroma.tests
|
||||||
pytestFlagsArray = [ "pyroma/tests.py" ];
|
'';
|
||||||
|
|
||||||
disabledTests = [
|
|
||||||
# PyPI tests require network access
|
|
||||||
"PyPITest"
|
|
||||||
];
|
|
||||||
|
|
||||||
pythonImportsCheck = [ "pyroma" ];
|
pythonImportsCheck = [ "pyroma" ];
|
||||||
|
|
||||||
|
@ -43,6 +38,6 @@ buildPythonPackage rec {
|
||||||
description = "Test your project's packaging friendliness";
|
description = "Test your project's packaging friendliness";
|
||||||
homepage = "https://github.com/regebro/pyroma";
|
homepage = "https://github.com/regebro/pyroma";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ ];
|
maintainers = with maintainers; [ kamadorueda ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue