nixpkgs/pkgs/development/python-modules/llm-openai-plugin/tests/llm-plugin.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

23 lines
326 B
Nix
Raw Normal View History

2025-04-19 10:11:37 -07:00
{
runCommand,
python,
yq,
}:
let
venv = python.withPackages (ps: [
ps.llm
ps.llm-openai-plugin
]);
in
runCommand "llm-openai-plugin-test-llm-plugin"
{
nativeBuildInputs = [
venv
yq
];
}
''
llm plugins | yq --exit-status 'any(.name == "llm-openai-plugin")'
touch "$out"
''