python3Packages.cchardet: fix test phase
This commit is contained in:
parent
8a6c6f1b13
commit
f04b3afe05
1 changed files with 19 additions and 1 deletions
|
@ -14,9 +14,27 @@ buildPythonPackage rec {
|
|||
sha256 = "c428b6336545053c2589f6caf24ea32276c6664cb86db817e03a94c60afa0eaf";
|
||||
};
|
||||
|
||||
pythonImportsCheck = [
|
||||
"cchardet"
|
||||
];
|
||||
|
||||
checkInputs = [ nose ];
|
||||
|
||||
preCheck = ''
|
||||
cp -R src/tests $TMPDIR
|
||||
pushd $TMPDIR
|
||||
'';
|
||||
|
||||
checkPhase = ''
|
||||
${python.interpreter} setup.py nosetests
|
||||
runHook preCheck
|
||||
|
||||
nosetests
|
||||
|
||||
runHook postCheck
|
||||
'';
|
||||
|
||||
postCheck = ''
|
||||
popd
|
||||
'';
|
||||
|
||||
meta = {
|
||||
|
|
Loading…
Reference in a new issue