From e71f76cee6de45367df353d896bf60a5d2a96369 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Tue, 14 Apr 2026 21:03:24 +0000 Subject: [PATCH] python3Packages.attrs-strict: cleanup, skip failing tests on python>=3.14 --- .../python-modules/attrs-strict/default.nix | 23 +++++++++++++++---- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/attrs-strict/default.nix b/pkgs/development/python-modules/attrs-strict/default.nix index 726778baa0e8..c1ec8c711deb 100644 --- a/pkgs/development/python-modules/attrs-strict/default.nix +++ b/pkgs/development/python-modules/attrs-strict/default.nix @@ -2,13 +2,19 @@ lib, buildPythonPackage, fetchFromGitHub, - attrs, + + # build-system setuptools, setuptools-scm, + + # dependencies + attrs, + + # tests pytestCheckHook, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "attrs-strict"; version = "1.0.1"; pyproject = true; @@ -16,7 +22,7 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "bloomberg"; repo = "attrs-strict"; - tag = version; + tag = finalAttrs.version; hash = "sha256-dDOD4Y57E+i8D0S4q+C6t7zjBTsS8q2UFiS22Dsp0Z8="; }; @@ -35,11 +41,18 @@ buildPythonPackage rec { pytestCheckHook ]; + disabledTests = [ + # AssertionError: Regex pattern did not match + "test_real_types" + "test_recursive" + "test_union_when_type_is_not_specified_raises" + ]; + meta = { - changelog = "https://github.com/bloomberg/attrs-strict/releases/tag/${version}"; description = "Python package which contains runtime validation for attrs data classes based on the types existing in the typing module"; homepage = "https://github.com/bloomberg/attrs-strict"; + changelog = "https://github.com/bloomberg/attrs-strict/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.asl20; maintainers = [ ]; }; -} +})