python3Packages.ftfy: use pytestCheckHook

This commit is contained in:
Robert Schütz 2021-03-11 14:24:16 +01:00
parent 7273800f1e
commit cc4e9f3835

View File

@ -2,10 +2,8 @@
, buildPythonPackage , buildPythonPackage
, isPy3k , isPy3k
, fetchPypi , fetchPypi
, html5lib
, wcwidth , wcwidth
, setuptools , pytestCheckHook
, pytest
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@ -20,18 +18,15 @@ buildPythonPackage rec {
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
html5lib
wcwidth wcwidth
setuptools
]; ];
checkInputs = [ checkInputs = [
pytest pytestCheckHook
]; ];
# We suffix PATH like this because the tests want the ftfy executable preCheck = ''
checkPhase = '' export PATH=$out/bin:$PATH
PATH=$out/bin:$PATH pytest
''; '';
meta = with lib; { meta = with lib; {