From 9e89f0fad50f8577e70920092f8ec31c8254d159 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Thu, 30 Nov 2023 22:32:26 +0100 Subject: [PATCH] python311Packages.pydantic: disable strict docs building The docs build being strict, makes it fail on warnings: WARNING - Material emoji logic has been officially moved into mkdocs-material version 9.4. Please use Material's 'material.extensions.emoji.to_svg' instead of 'materialx.emoji.to_svg' in your 'mkdocs.yml' file. --- pkgs/development/python-modules/pydantic/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/pydantic/default.nix b/pkgs/development/python-modules/pydantic/default.nix index 4384e51db22b..84de5894f501 100644 --- a/pkgs/development/python-modules/pydantic/default.nix +++ b/pkgs/development/python-modules/pydantic/default.nix @@ -6,7 +6,6 @@ , devtools , email-validator , fetchFromGitHub -, fetchpatch , pytest-mock , pytestCheckHook , python-dotenv @@ -53,6 +52,10 @@ buildPythonPackage rec { postPatch = '' sed -i '/flake8/ d' Makefile + + # Disable strict docs build due warnings being treated as errors + substituteInPlace mkdocs.yml \ + --replace "strict: true" "strict: false" ''; buildInputs = lib.optionals (pythonOlder "3.9") [