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-anthropic, anthropic, pytestCheckHook, pytest-asyncio, pytest-recording, writableTmpDirAsHomeHook,}:
buildPythonPackage rec { pname = "llm-anthropic"; version = "0.18"; pyproject = true;
src = fetchFromGitHub { owner = "simonw"; repo = "llm-anthropic"; tag = version; hash = "sha256-eyB68wPc4ALnEypUXN20ru7UfS6yKLp2NJohH3Av9Ls="; };
build-system = [ setuptools ];
dependencies = [ anthropic llm ];
nativeCheckInputs = [ pytestCheckHook pytest-asyncio pytest-recording writableTmpDirAsHomeHook ];
pythonImportsCheck = [ "llm_anthropic" ];
passthru.tests = llm.mkPluginTest llm-anthropic;
meta = { description = "LLM access to models by Anthropic, including the Claude series"; homepage = "https://github.com/simonw/llm-anthropic"; changelog = "https://github.com/simonw/llm-anthropic/releases/tag/${src.tag}/CHANGELOG.md"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ aos ]; };}