mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-11 07:43:43 +00:00
71 lines
1.3 KiB
Nix
71 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
nix-update-script,
|
|
|
|
# build-system
|
|
poetry-core,
|
|
|
|
# dependencies
|
|
numpy,
|
|
pyside6,
|
|
pyyaml,
|
|
requests,
|
|
tqdm,
|
|
|
|
# tests
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "gguf";
|
|
version = "9538";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ggml-org";
|
|
repo = "llama.cpp";
|
|
tag = "b${finalAttrs.version}";
|
|
hash = "sha256-7cE5l+fnVsw72UyqAqKP2UmKg2seMCcqsZSKhHBSKLM=";
|
|
};
|
|
|
|
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/";
|
|
downloadPage = "https://github.com/ggml-org/llama.cpp/releases";
|
|
changelog = "https://github.com/ggml-org/llama.cpp/releases/tag/${finalAttrs.src.tag}";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [
|
|
mitchmindtree
|
|
sarahec
|
|
];
|
|
};
|
|
})
|