{ lib, buildPythonPackage, fetchFromGitHub, nix-update-script, # build-system poetry-core, # dependencies numpy, pyside6, pyyaml, requests, tqdm, # tests pytestCheckHook, }: buildPythonPackage (finalAttrs: { pname = "gguf"; version = "8799"; pyproject = true; src = fetchFromGitHub { owner = "ggml-org"; repo = "llama.cpp"; tag = "b${finalAttrs.version}"; hash = "sha256-AQWcj6FtBGKKU8DiAH/ZHH6XU/5hrBKiYvIoULpL+1g="; }; sourceRoot = "${finalAttrs.src.name}/gguf-py"; build-system = [ poetry-core ]; dependencies = [ numpy pyyaml requests tqdm ]; optional-dependencies = { gui = [ pyside6 ]; }; nativeCheckInputs = [ pytestCheckHook ]; 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/"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ mitchmindtree sarahec ]; }; })