Files
nixpkgs/pkgs/development/python-modules/gguf/default.nix
T
2026-03-11 10:42:41 -07:00

61 lines
991 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
poetry-core,
# dependencies
numpy,
pyside6,
pyyaml,
requests,
tqdm,
# tests
pytestCheckHook,
}:
buildPythonPackage (finalAttrs: {
pname = "gguf";
version = "8147";
pyproject = true;
src = fetchFromGitHub {
owner = "ggml-org";
repo = "llama.cpp";
tag = "b${finalAttrs.version}";
hash = "sha256-/r/lWt+G14BsNqTBqeK4Po4QHU0GkpEBbIvt5rqB4jc=";
};
sourceRoot = "${finalAttrs.src.name}/gguf-py";
build-system = [ poetry-core ];
dependencies = [
numpy
pyyaml
requests
tqdm
];
optional-dependencies = {
gui = [ pyside6 ];
};
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
];
};
})