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