mirror of
https://github.com/ggml-org/llama.cpp.git
synced 2026-03-17 16:44:07 +00:00
Without this I get:
> * Getting build dependencies for wheel...
> * Building wheel...
> Successfully built gguf-0.17.1-py3-none-any.whl
> Finished creating a wheel...
> Finished executing pypaBuildPhase
> Running phase: pythonRuntimeDepsCheckHook
> Executing pythonRuntimeDepsCheck
> Checking runtime dependencies for gguf-0.17.1-py3-none-any.whl
> - requests not installed
For full logs, run:
nix log /nix/store/x0c4a251l68bvdgang9d8v2fsmqay8a4-python3.12-gguf-0.0.0.drv
I changed a bit the style to make it more terse ~> more elegant in my
opinion.
39 lines
691 B
Nix
39 lines
691 B
Nix
{
|
|
lib,
|
|
llamaVersion,
|
|
numpy,
|
|
tqdm,
|
|
requests,
|
|
sentencepiece,
|
|
pyyaml,
|
|
poetry-core,
|
|
buildPythonPackage,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage {
|
|
pname = "gguf";
|
|
version = llamaVersion;
|
|
pyproject = true;
|
|
nativeBuildInputs = [ poetry-core ];
|
|
propagatedBuildInputs = [
|
|
numpy
|
|
tqdm
|
|
sentencepiece
|
|
pyyaml
|
|
requests
|
|
];
|
|
src = lib.cleanSource ../../gguf-py;
|
|
pythonImportsCheck = [
|
|
"numpy"
|
|
"gguf"
|
|
];
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
doCheck = true;
|
|
meta = with lib; {
|
|
description = "Python package for writing binary files in the GGUF format";
|
|
license = licenses.mit;
|
|
maintainers = [ maintainers.ditsuke ];
|
|
};
|
|
}
|