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";