Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.1 kB · 59 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960{ lib, buildPythonPackage, fetchFromGitHub, setuptools, llm, llm-openrouter, httpx, openai, pytestCheckHook, inline-snapshot, pytest-recording, writableTmpDirAsHomeHook,}:
buildPythonPackage rec { pname = "llm-openrouter"; version = "0.4.1"; pyproject = true;
src = fetchFromGitHub { owner = "simonw"; repo = "llm-openrouter"; tag = version; hash = "sha256-ojBkyXqEaqTcOv7mzTWL5Ihhb50zeVzeQZNA6DySuVg="; };
build-system = [ setuptools ];
dependencies = [ httpx llm openai ];
nativeCheckInputs = [ pytestCheckHook inline-snapshot pytest-recording writableTmpDirAsHomeHook ];
pythonImportsCheck = [ "llm_openrouter" ];
passthru.tests = llm.mkPluginTest llm-openrouter;
meta = { description = "LLM plugin for models hosted by OpenRouter"; homepage = "https://github.com/simonw/llm-openrouter"; changelog = "https://github.com/simonw/llm-openrouter/releases/tag/${version}/CHANGELOG.md"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ arcuru philiptaron ]; };}