python313Packages.django-cachalot: fix build

fixes https://hydra.nixos.org/build/290691697
This commit is contained in:
Peder Bergebakken Sundt
2025-03-03 02:33:30 +01:00
parent 515eb74927
commit 0fc0b1b698
@@ -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