Unverified Commit c69bb030 authored by Michael Daniels's avatar Michael Daniels Committed by GitHub
Browse files

python3Packages.gguf: 8292 -> 8545 (#503904)

parents be9b6d90 aff243e0
Loading
Loading
Loading
Loading
+10 −2
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  nix-update-script,

  # build-system
  poetry-core,
@@ -19,14 +20,14 @@

buildPythonPackage (finalAttrs: {
  pname = "gguf";
  version = "8292";
  version = "8545";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "ggml-org";
    repo = "llama.cpp";
    tag = "b${finalAttrs.version}";
    hash = "sha256-nlUG9b+LGKdQ4kfUTqWUPgqavOMVhD8mAYwf3WARO3s=";
    hash = "sha256-sb0fSpzwyl2Ws270if/4Ts75J3E6mGEJ/N5GDjzgg6A=";
  };

  sourceRoot = "${finalAttrs.src.name}/gguf-py";
@@ -48,6 +49,13 @@ buildPythonPackage (finalAttrs: {

  pythonImportsCheck = [ "gguf" ];

  passthru.updateScript = nix-update-script {
    extraArgs = [
      "--version-regex"
      "b(.*)"
    ];
  };

  meta = {
    description = "Module for writing binary files in the GGUF format";
    homepage = "https://ggml.ai/";