From 9273dcb4c08fa5298bfb446c10543905bbe86c5e Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 6 Apr 2026 17:20:25 +0200 Subject: [PATCH] python3Packages.types-lxml: disable failing tests - migrate to finalAttrs --- .../python-modules/types-lxml/default.nix | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/types-lxml/default.nix b/pkgs/development/python-modules/types-lxml/default.nix index ea6ea6f2e480..5a00863f96b3 100644 --- a/pkgs/development/python-modules/types-lxml/default.nix +++ b/pkgs/development/python-modules/types-lxml/default.nix @@ -18,7 +18,7 @@ urllib3, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "types-lxml"; version = "2026.01.01"; pyproject = true; @@ -26,7 +26,7 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "abelcheung"; repo = "types-lxml"; - tag = version; + tag = finalAttrs.version; hash = "sha256-odkIwuh2VxDliRd6cPTCBSz19zxIBOBlVN0Sisngkn0="; }; @@ -56,7 +56,7 @@ buildPythonPackage rec { typeguard urllib3 ] - ++ lib.concatAttrValues optional-dependencies; + ++ lib.flatten (builtins.attrValues finalAttrs.passthru.optional-dependencies); pythonImportsCheck = [ "lxml-stubs" ]; @@ -78,13 +78,17 @@ buildPythonPackage rec { "TestXmldtdid" "TestIddict" "TestParseid" + # BaseExceptionGroup: Hypothesis found 5 distinct failures. (5 sub-exceptions) + "test_start_arg_bad_1" + "test_stop_arg_bad_1" + "test_index_arg_bad_1" ]; meta = { description = "Complete lxml external type annotation"; homepage = "https://github.com/abelcheung/types-lxml"; - changelog = "https://github.com/abelcheung/types-lxml/releases/tag/${src.tag}"; + changelog = "https://github.com/abelcheung/types-lxml/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ fab ]; }; -} +})