From 16e65393cf4921dbe61e0c75ee7473fe6302de33 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Tue, 26 Aug 2025 11:38:40 +0200 Subject: [PATCH 1/2] python3Packages.tyro: 0.9.27 -> 0.9.28 Diff: https://github.com/brentyi/tyro/compare/v0.9.27...v0.9.28 Changelog: https://github.com/brentyi/tyro/releases/tag/v0.9.28 --- pkgs/development/python-modules/tyro/default.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/tyro/default.nix b/pkgs/development/python-modules/tyro/default.nix index 6422a960ccd1..b59a5d1edf65 100644 --- a/pkgs/development/python-modules/tyro/default.nix +++ b/pkgs/development/python-modules/tyro/default.nix @@ -18,6 +18,7 @@ flax, jax, ml-collections, + msgspec, omegaconf, pydantic, pytestCheckHook, @@ -26,14 +27,14 @@ buildPythonPackage rec { pname = "tyro"; - version = "0.9.27"; + version = "0.9.28"; pyproject = true; src = fetchFromGitHub { owner = "brentyi"; repo = "tyro"; tag = "v${version}"; - hash = "sha256-2duLVdBwNpGWCV+WgtzyXjoVhukVjUUhIWXVBEk4QIA="; + hash = "sha256-dxciOLNxOjTTIm7P1XTRMgW1a6Sdbnfnqc0EEfyq7IM="; }; build-system = [ hatchling ]; @@ -51,6 +52,7 @@ buildPythonPackage rec { flax jax ml-collections + msgspec omegaconf pydantic pytestCheckHook From 8871ae8fe4040ad5a25da521712540645eeb86e6 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Tue, 26 Aug 2025 11:50:47 +0200 Subject: [PATCH 2/2] python3Packages.unsloth-zoo: 2025.8.1 -> 2025.8.8 --- pkgs/development/python-modules/unsloth-zoo/default.nix | 5 +++-- .../unsloth-zoo/dont-require-unsloth.patch | 9 ++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/unsloth-zoo/default.nix b/pkgs/development/python-modules/unsloth-zoo/default.nix index d5f50d0578ec..605f7eae4d8d 100644 --- a/pkgs/development/python-modules/unsloth-zoo/default.nix +++ b/pkgs/development/python-modules/unsloth-zoo/default.nix @@ -27,20 +27,21 @@ buildPythonPackage rec { pname = "unsloth-zoo"; - version = "2025.8.1"; + version = "2025.8.8"; pyproject = true; # no tags on GitHub src = fetchPypi { pname = "unsloth_zoo"; inherit version; - hash = "sha256-AkAfd+dJb8A9cUYK/VH30Q5xN2BW/x4zyndnIyN9y14="; + hash = "sha256-Njezsl9+oxAyiRF87AXQJbLjNz/lco0j8JG8RnTiZAE="; }; # pyproject.toml requires an obsolete version of protobuf, # but it is not used. # Upstream issue: https://github.com/unslothai/unsloth-zoo/pull/68 pythonRelaxDeps = [ + "datasets" "protobuf" "transformers" "torch" diff --git a/pkgs/development/python-modules/unsloth-zoo/dont-require-unsloth.patch b/pkgs/development/python-modules/unsloth-zoo/dont-require-unsloth.patch index 4d4bdb13a05c..f1f2990d318f 100644 --- a/pkgs/development/python-modules/unsloth-zoo/dont-require-unsloth.patch +++ b/pkgs/development/python-modules/unsloth-zoo/dont-require-unsloth.patch @@ -1,9 +1,9 @@ diff --git a/unsloth_zoo/__init__.py b/unsloth_zoo/__init__.py -index a629854..06014b1 100644 +index 2332907..2eed5e9 100644 --- a/unsloth_zoo/__init__.py +++ b/unsloth_zoo/__init__.py -@@ -17,8 +17,6 @@ - __version__ = "2025.5.11" +@@ -64,8 +64,6 @@ pass + from importlib.util import find_spec -if find_spec("unsloth") is None: @@ -11,7 +11,7 @@ index a629854..06014b1 100644 pass del find_spec -@@ -28,13 +26,14 @@ def get_device_type(): +@@ -75,12 +73,13 @@ def get_device_type(): return "cuda" elif hasattr(torch, "xpu") and torch.xpu.is_available(): return "xpu" @@ -22,7 +22,6 @@ index a629854..06014b1 100644 pass DEVICE_TYPE : str = get_device_type() - import os -if not ("UNSLOTH_IS_PRESENT" in os.environ): - raise ImportError("Please install Unsloth via `pip install unsloth`!") pass