python3Packages.ggml-python: 0.0.42 -> 0.0.44

add update script to find correct version tag
This commit is contained in:
Lein Matsumaru
2026-06-27 01:38:55 +00:00
parent e4033895e6
commit 733579e7f0
@@ -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";