From 733579e7f0653bbcc3fd1fb13d86663eca7d9e16 Mon Sep 17 00:00:00 2001 From: Lein Matsumaru Date: Sat, 27 Jun 2026 01:38:55 +0000 Subject: [PATCH] python3Packages.ggml-python: 0.0.42 -> 0.0.44 add update script to find correct version tag --- .../python-modules/ggml-python/default.nix | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/ggml-python/default.nix b/pkgs/development/python-modules/ggml-python/default.nix index dfc5798bc261..a1f6fbe59375 100644 --- a/pkgs/development/python-modules/ggml-python/default.nix +++ b/pkgs/development/python-modules/ggml-python/default.nix @@ -2,6 +2,7 @@ lib, buildPythonPackage, fetchFromGitHub, + nix-update-script, # build-system cmake, @@ -34,7 +35,7 @@ buildPythonPackage (finalAttrs: { pname = "ggml-python"; - version = "0.0.42"; + version = "0.0.44"; pyproject = true; __structuredAttrs = true; @@ -44,7 +45,7 @@ buildPythonPackage (finalAttrs: { tag = "v${finalAttrs.version}"; # ggml-python expects an older version of ggml than pkgs.ggml's fetchSubmodules = true; - hash = "sha256-dbYxAropTT8h1BnMg4Ua1hY/IUYWHaZcS0ckj38UoO4="; + hash = "sha256-Pjc91nKBAdmEg8TmirWdD1AcKlY+BCDAoHzL6mTE2SM="; }; build-system = [ @@ -92,6 +93,13 @@ buildPythonPackage (finalAttrs: { pytestCheckHook ]; + passthru.updateScript = nix-update-script { + extraArgs = [ + "--version-regex" + "^v([0-9.]+)$" + ]; + }; + meta = { description = "Python bindings for ggml"; homepage = "https://github.com/abetlen/ggml-python";