python3Packages.django-silk: fix tests

This commit is contained in:
sephi
2026-06-05 14:42:39 +02:00
parent 654727f8f7
commit 0a95ede7cf
@@ -13,6 +13,9 @@
pillow,
pydot,
pygments,
pytestCheckHook,
pytest-cov-stub,
pytest-django,
python,
python-dateutil,
pytz,
@@ -67,18 +70,17 @@ buildPythonPackage rec {
networkx
pydot
factory-boy
pytestCheckHook
pytest-cov-stub
pytest-django
];
pythonImportsCheck = [ "silk" ];
checkPhase = ''
runHook preCheck
preCheck = ''
export DB_ENGINE=sqlite3 DB_NAME=':memory:'
pushd project
DB_ENGINE=sqlite3 DB_NAME=':memory:' ${python.interpreter} manage.py test
popd # project
runHook postCheck
cd project
'';
meta = {