From 6900ae06d0dbe2eb6ca24daea9a6345abad604f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Mon, 19 Jan 2026 09:23:49 -0800 Subject: [PATCH] python3Packages.beartype: 0.21.0 -> 0.22.9 Diff: https://github.com/beartype/beartype/compare/v0.21.0...v0.22.9 Changelog: https://github.com/beartype/beartype/releases/tag/v0.22.0 https://github.com/beartype/beartype/releases/tag/v0.22.1 https://github.com/beartype/beartype/releases/tag/v0.22.2 https://github.com/beartype/beartype/releases/tag/v0.22.3 https://github.com/beartype/beartype/releases/tag/v0.22.4 https://github.com/beartype/beartype/releases/tag/v0.22.5 https://github.com/beartype/beartype/releases/tag/v0.22.6 https://github.com/beartype/beartype/releases/tag/v0.22.7 https://github.com/beartype/beartype/releases/tag/v0.22.8 https://github.com/beartype/beartype/releases/tag/v0.22.9 --- .../python-modules/beartype/default.nix | 22 ++----------------- 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/pkgs/development/python-modules/beartype/default.nix b/pkgs/development/python-modules/beartype/default.nix index a8a1149930d6..9a131990a677 100644 --- a/pkgs/development/python-modules/beartype/default.nix +++ b/pkgs/development/python-modules/beartype/default.nix @@ -4,30 +4,21 @@ fetchFromGitHub, hatchling, pytestCheckHook, - pythonAtLeast, typing-extensions, }: buildPythonPackage rec { pname = "beartype"; - version = "0.21.0"; + version = "0.22.9"; pyproject = true; src = fetchFromGitHub { owner = "beartype"; repo = "beartype"; tag = "v${version}"; - hash = "sha256-oD7LS+c+mZ8W4YnAaAYxQkbUlmO8E2TPxy0PBI7Jr7A="; + hash = "sha256-F9x2qvzll1nUcTQZjaky+0ukP1RXoW35crzfS/pmvTs="; }; - # Several tests fail with: - # - beartype.roar.BeartypeDecorHintNonpepException - # - RuntimeError: There is no current event loop in thread 'MainThread' - # - Failed: DID NOT RAISE - # - AssertionError - # - ... - disabled = pythonAtLeast "3.14"; - build-system = [ hatchling ]; nativeCheckInputs = [ @@ -37,15 +28,6 @@ buildPythonPackage rec { pythonImportsCheck = [ "beartype" ]; - disabledTests = [ - # No warnings of type (,) were emitted. - "test_is_hint_pep593_beartype" - ] - ++ lib.optionals (pythonAtLeast "3.13") [ - # this test is not run upstream, and broke in 3.13 (_nparams removed) - "test_door_is_subhint" - ]; - meta = { description = "Fast runtime type checking for Python"; homepage = "https://github.com/beartype/beartype";