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
This commit is contained in:
@@ -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 <class 'beartype.roar.BeartypeDecorHintNonpepException'>
|
||||
# - AssertionError
|
||||
# - ...
|
||||
disabled = pythonAtLeast "3.14";
|
||||
|
||||
build-system = [ hatchling ];
|
||||
|
||||
nativeCheckInputs = [
|
||||
@@ -37,15 +28,6 @@ buildPythonPackage rec {
|
||||
|
||||
pythonImportsCheck = [ "beartype" ];
|
||||
|
||||
disabledTests = [
|
||||
# No warnings of type (<class 'beartype.roar._roarwarn.BeartypeValeLambdaWarning'>,) 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";
|
||||
|
||||
Reference in New Issue
Block a user