python3Packages.attrs-strict: cleanup, skip failing tests on python>=3.14

This commit is contained in:
Gaetan Lepage
2026-04-14 21:03:24 +00:00
parent e4a3baa871
commit e71f76cee6
@@ -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 = [ ];
};
}
})