From bd17e4551c59f8cb8d0c67b846e622d5333019e9 Mon Sep 17 00:00:00 2001 From: Hugo Herter Date: Tue, 3 Mar 2026 22:35:13 +0100 Subject: [PATCH] python3Packages.django-weasyprint: disable failing test with weasyprint 68 test_get_pdf_download_and_options tries to open /static/css/print.css in the Nix test environment and fails with FileNotFoundError. Disable this single upstream test so the package keeps building while retaining the rest of the test suite. --- .../development/python-modules/django-weasyprint/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/python-modules/django-weasyprint/default.nix b/pkgs/development/python-modules/django-weasyprint/default.nix index 25722129896d..f496f7948286 100644 --- a/pkgs/development/python-modules/django-weasyprint/default.nix +++ b/pkgs/development/python-modules/django-weasyprint/default.nix @@ -33,6 +33,11 @@ buildPythonPackage rec { pytestCheckHook ]; + disabledTests = [ + # Fails with weasyprint >= 68 (tries to open /static/css/print.css in test env) + "test_get_pdf_download_and_options" + ]; + pythonImportsCheck = [ "django_weasyprint" ]; meta = {