nixpkgs/pkgs/development/python-modules/llm-openai-plugin/tests/llm-plugin.nix
2025-04-19 10:20:47 -07:00

22 lines
326 B
Nix

{
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"
''