python3Packages.cchardet: fix test phase

This commit is contained in:
Martin Weinelt 2022-01-18 00:16:47 +01:00
parent 8a6c6f1b13
commit f04b3afe05

View file

@ -14,9 +14,27 @@ buildPythonPackage rec {
sha256 = "c428b6336545053c2589f6caf24ea32276c6664cb86db817e03a94c60afa0eaf"; sha256 = "c428b6336545053c2589f6caf24ea32276c6664cb86db817e03a94c60afa0eaf";
}; };
pythonImportsCheck = [
"cchardet"
];
checkInputs = [ nose ]; checkInputs = [ nose ];
preCheck = ''
cp -R src/tests $TMPDIR
pushd $TMPDIR
'';
checkPhase = '' checkPhase = ''
${python.interpreter} setup.py nosetests runHook preCheck
nosetests
runHook postCheck
'';
postCheck = ''
popd
''; '';
meta = { meta = {