package-gguf-py.nix 666 B

123456789101112131415161718192021222324252627282930313233343536
  1. {
  2. lib,
  3. llamaVersion,
  4. numpy,
  5. tqdm,
  6. sentencepiece,
  7. pyyaml,
  8. poetry-core,
  9. buildPythonPackage,
  10. pytestCheckHook,
  11. }:
  12. buildPythonPackage {
  13. pname = "gguf";
  14. version = llamaVersion;
  15. pyproject = true;
  16. nativeBuildInputs = [ poetry-core ];
  17. propagatedBuildInputs = [
  18. numpy
  19. tqdm
  20. sentencepiece
  21. pyyaml
  22. ];
  23. src = lib.cleanSource ../../gguf-py;
  24. pythonImportsCheck = [
  25. "numpy"
  26. "gguf"
  27. ];
  28. nativeCheckInputs = [ pytestCheckHook ];
  29. doCheck = true;
  30. meta = with lib; {
  31. description = "Python package for writing binary files in the GGUF format";
  32. license = licenses.mit;
  33. maintainers = [ maintainers.ditsuke ];
  34. };
  35. }