From 59f2b793b003e69b514aa7a2c49cd01f4a96b85e Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Wed, 22 May 2024 01:21:40 +0200 Subject: [PATCH] python312Packages.limits: 3.10.1 -> 3.12.0 Disable tests on Python 3.12, as they currently crash somewhere in protobuf on all supported platforms. https://github.com/alisaifee/limits/releases/tag/3.11.0 https://github.com/alisaifee/limits/releases/tag/3.12.0 --- pkgs/development/python-modules/limits/default.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/limits/default.nix b/pkgs/development/python-modules/limits/default.nix index 9849541282f8..111c55145e5f 100644 --- a/pkgs/development/python-modules/limits/default.nix +++ b/pkgs/development/python-modules/limits/default.nix @@ -22,7 +22,7 @@ buildPythonPackage rec { pname = "limits"; - version = "3.10.1"; + version = "3.12.0"; pyproject = true; disabled = pythonOlder "3.7"; @@ -37,7 +37,7 @@ buildPythonPackage rec { postFetch = '' rm "$out/limits/_version.py" ''; - hash = "sha256-Ax0P9rYTPOrhtOw7FLElSNTGQ3WWCboM3FodTOGZWu8="; + hash = "sha256-EH2/75tcKuS11XKuo4lCQrFe4/XJZpcWhuGlSuhIk18="; }; postPatch = '' @@ -93,12 +93,14 @@ buildPythonPackage rec { ]; }; + doCheck = pythonOlder "3.12"; # SystemError in protobuf + nativeCheckInputs = [ hiro pytest-asyncio pytest-lazy-fixture pytestCheckHook - ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies); + ] ++ lib.flatten (lib.attrValues passthru.optional-dependencies); pythonImportsCheck = [ "limits"