python3Packages.tyro: 0.9.27 -> 0.9.28 (#437064)

authored by

Gaétan Lepage and committed by
GitHub
2263617f 82c1c230

+11 -9
+4 -2
pkgs/development/python-modules/tyro/default.nix
··· 18 18 flax, 19 19 jax, 20 20 ml-collections, 21 + msgspec, 21 22 omegaconf, 22 23 pydantic, 23 24 pytestCheckHook, ··· 26 27 27 28 buildPythonPackage rec { 28 29 pname = "tyro"; 29 - version = "0.9.27"; 30 + version = "0.9.28"; 30 31 pyproject = true; 31 32 32 33 src = fetchFromGitHub { 33 34 owner = "brentyi"; 34 35 repo = "tyro"; 35 36 tag = "v${version}"; 36 - hash = "sha256-2duLVdBwNpGWCV+WgtzyXjoVhukVjUUhIWXVBEk4QIA="; 37 + hash = "sha256-dxciOLNxOjTTIm7P1XTRMgW1a6Sdbnfnqc0EEfyq7IM="; 37 38 }; 38 39 39 40 build-system = [ hatchling ]; ··· 51 52 flax 52 53 jax 53 54 ml-collections 55 + msgspec 54 56 omegaconf 55 57 pydantic 56 58 pytestCheckHook
+3 -2
pkgs/development/python-modules/unsloth-zoo/default.nix
··· 27 27 28 28 buildPythonPackage rec { 29 29 pname = "unsloth-zoo"; 30 - version = "2025.8.1"; 30 + version = "2025.8.8"; 31 31 pyproject = true; 32 32 33 33 # no tags on GitHub 34 34 src = fetchPypi { 35 35 pname = "unsloth_zoo"; 36 36 inherit version; 37 - hash = "sha256-AkAfd+dJb8A9cUYK/VH30Q5xN2BW/x4zyndnIyN9y14="; 37 + hash = "sha256-Njezsl9+oxAyiRF87AXQJbLjNz/lco0j8JG8RnTiZAE="; 38 38 }; 39 39 40 40 # pyproject.toml requires an obsolete version of protobuf, 41 41 # but it is not used. 42 42 # Upstream issue: https://github.com/unslothai/unsloth-zoo/pull/68 43 43 pythonRelaxDeps = [ 44 + "datasets" 44 45 "protobuf" 45 46 "transformers" 46 47 "torch"
+4 -5
pkgs/development/python-modules/unsloth-zoo/dont-require-unsloth.patch
··· 1 1 diff --git a/unsloth_zoo/__init__.py b/unsloth_zoo/__init__.py 2 - index a629854..06014b1 100644 2 + index 2332907..2eed5e9 100644 3 3 --- a/unsloth_zoo/__init__.py 4 4 +++ b/unsloth_zoo/__init__.py 5 - @@ -17,8 +17,6 @@ 6 - __version__ = "2025.5.11" 5 + @@ -64,8 +64,6 @@ pass 6 + 7 7 8 8 from importlib.util import find_spec 9 9 -if find_spec("unsloth") is None: ··· 11 11 pass 12 12 del find_spec 13 13 14 - @@ -28,13 +26,14 @@ def get_device_type(): 14 + @@ -75,12 +73,13 @@ def get_device_type(): 15 15 return "cuda" 16 16 elif hasattr(torch, "xpu") and torch.xpu.is_available(): 17 17 return "xpu" ··· 22 22 pass 23 23 DEVICE_TYPE : str = get_device_type() 24 24 25 - import os 26 25 -if not ("UNSLOTH_IS_PRESENT" in os.environ): 27 26 - raise ImportError("Please install Unsloth via `pip install unsloth`!") 28 27 pass