python3Packages.dbf: use pytestCheckHook
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
buildPythonPackage,
|
||||
setuptools,
|
||||
aenum,
|
||||
pytestCheckHook,
|
||||
python,
|
||||
}:
|
||||
|
||||
@@ -27,12 +28,14 @@ buildPythonPackage (finalAttrs: {
|
||||
|
||||
dependencies = [ aenum ];
|
||||
|
||||
checkPhase = ''
|
||||
runHook preCheck
|
||||
${python.interpreter} -m dbf.test
|
||||
runHook postCheck
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
|
||||
preCheck = ''
|
||||
sed -i '/^import tempfile$/a tempdir = tempfile.mkdtemp()' dbf/test.py
|
||||
'';
|
||||
|
||||
enabledTestPaths = [ "dbf/test.py" ];
|
||||
|
||||
pythonImportsCheck = [ "dbf" ];
|
||||
|
||||
meta = {
|
||||
|
||||
Reference in New Issue
Block a user