python313Packages.django-cachalot: fix build (#386545)

This commit is contained in:
Jonas Heinrich
2025-03-04 09:56:33 +01:00
committed by GitHub
@@ -5,6 +5,7 @@
django,
django-debug-toolbar,
psycopg2,
jinja2,
beautifulsoup4,
python,
pytz,
@@ -34,11 +35,20 @@ buildPythonPackage rec {
beautifulsoup4
django-debug-toolbar
psycopg2
jinja2
pytz
];
pythonImportsCheck = [ "cachalot" ];
# disable broken pinning test
preCheck = ''
substituteInPlace cachalot/tests/read.py \
--replace-fail \
"def test_explain(" \
"def _test_explain("
'';
checkPhase = ''
runHook preCheck
${python.interpreter} runtests.py