0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-14 14:10:33 +03:00
nixpkgs/pkgs/development/python-modules/llm-grok/default.nix
Philip Taron 42fa505cf7 python3Packages.llm-*: use llm in the dependencies
There's no circular dependency problems anymore.
2025-05-31 20:52:40 -07:00

54 lines
1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
llm,
llm-grok,
httpx,
httpx-sse,
rich,
pytestCheckHook,
pytest-httpx,
writableTmpDirAsHomeHook,
}:
buildPythonPackage rec {
pname = "llm-grok";
version = "1.0.1";
pyproject = true;
src = fetchFromGitHub {
owner = "Hiepler";
repo = "llm-grok";
tag = "v${version}";
hash = "sha256-OeeU/53XKucLCtGvnl5RWc/QqF0TprB/SO8pnnK5fdw=";
};
build-system = [ setuptools ];
dependencies = [
llm
httpx
httpx-sse
rich
];
nativeCheckInputs = [
pytestCheckHook
pytest-httpx
writableTmpDirAsHomeHook
];
pythonImportsCheck = [ "llm_grok" ];
passthru.tests = llm.mkPluginTest llm-grok;
meta = {
description = "LLM plugin providing access to Grok models using the xAI API";
homepage = "https://github.com/Hiepler/llm-grok";
changelog = "https://github.com/Hiepler/llm-grok/releases/tag/${src.tag}/CHANGELOG.md";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ philiptaron ];
};
}