python3Packages.leather: fix build

Broken in 2f4ea0c6df.

Upstream changed from nose to pytest. Previously, the
setuptoolsCheckHook would run and execute the `./test.py` file, but that
is not part of upstream’s build process and doesn’t work. Including
pytestCheckHook means that does not run—just pytest.
This commit is contained in:
Andrew Marshall 2024-03-22 09:31:37 -04:00
parent e1ad98971a
commit 956cf5f612
1 changed files with 2 additions and 8 deletions

View File

@ -4,7 +4,7 @@
, six
, cssselect
, lxml
, nose
, pytestCheckHook
}:
buildPythonPackage rec {
@ -22,15 +22,9 @@ buildPythonPackage rec {
nativeCheckInputs = [
cssselect
lxml
nose
pytestCheckHook
];
checkPhase = ''
runHook preCheck
nosetests
runHook postCheck
'';
meta = with lib; {
homepage = "http://leather.rtfd.io";
description = "Python charting library";