Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.1 kB · 54 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455{ lib, buildPythonPackage, fetchFromGitHub, setuptools, llm, llm-grok, httpx, httpx-sse, rich, pytestCheckHook, pytest-httpx, writableTmpDirAsHomeHook,}:
buildPythonPackage rec { pname = "llm-grok"; version = "1.2.0"; pyproject = true;
src = fetchFromGitHub { owner = "Hiepler"; repo = "llm-grok"; tag = "v${version}"; hash = "sha256-YSpo7dsQ0/s+sS2DXeLq7zHBdktxCr0P96vr6PtEu9o="; };
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 ]; };}