pythonPackages.ftfy: enable tests
This commit is contained in:
parent
bd0e9bba3d
commit
e7c0604fb1
@ -4,7 +4,7 @@
|
|||||||
, fetchPypi
|
, fetchPypi
|
||||||
, html5lib
|
, html5lib
|
||||||
, wcwidth
|
, wcwidth
|
||||||
, nose
|
, pytest
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
@ -23,23 +23,23 @@ buildPythonPackage rec {
|
|||||||
sha256 = "1ci6xrj4g01a97nymxpv9nj820nlmgzc4ybaz9k46i6bnxzpax7s";
|
sha256 = "1ci6xrj4g01a97nymxpv9nj820nlmgzc4ybaz9k46i6bnxzpax7s";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ html5lib wcwidth ];
|
propagatedBuildInputs = [
|
||||||
|
html5lib
|
||||||
checkInputs = [
|
wcwidth
|
||||||
nose
|
|
||||||
];
|
];
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
pytest
|
||||||
|
];
|
||||||
|
|
||||||
|
# We suffix PATH like this because the tests want the ftfy executable
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
nosetests -v tests
|
PATH=$out/bin:$PATH pytest
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# Several tests fail with
|
|
||||||
# FileNotFoundError: [Errno 2] No such file or directory: 'ftfy'
|
|
||||||
doCheck = false;
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Given Unicode text, make its representation consistent and possibly less broken.";
|
description = "Given Unicode text, make its representation consistent and possibly less broken";
|
||||||
homepage = https://github.com/LuminosoInsight/python-ftfy/tree/master/tests;
|
homepage = https://github.com/LuminosoInsight/python-ftfy;
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ sdll aborsu ];
|
maintainers = with maintainers; [ sdll aborsu ];
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user