{ lib, buildPythonPackage, fetchFromGitHub, # build-system poetry-core, # dependencies numpy, pyside6, pyyaml, sentencepiece, tqdm, # check inputs pytestCheckHook, }: buildPythonPackage rec { pname = "gguf"; version = "7789"; pyproject = true; src = fetchFromGitHub { owner = "ggml-org"; repo = "llama.cpp"; tag = "b${version}"; hash = "sha256-EQYyRSptjEmhe6AaOs3KV0N4aoGvK8Z+WBKacEYW8Wo="; }; sourceRoot = "${src.name}/gguf-py"; build-system = [ poetry-core ]; dependencies = [ numpy pyside6 pyyaml sentencepiece tqdm ]; nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "gguf" ]; 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 ]; }; }