at master 944 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 llm, 7 llm-echo, 8 pytest-asyncio, 9 pytestCheckHook, 10 writableTmpDirAsHomeHook, 11}: 12 13buildPythonPackage rec { 14 pname = "llm-echo"; 15 version = "0.3a3"; 16 pyproject = true; 17 18 src = fetchFromGitHub { 19 owner = "simonw"; 20 repo = "llm-echo"; 21 tag = version; 22 hash = "sha256-4345UIyaQx+mYYBAFD5AaX5YbjbnJQt8bKMD5Vl8VJc="; 23 }; 24 25 build-system = [ setuptools ]; 26 27 dependencies = [ llm ]; 28 29 nativeCheckInputs = [ 30 pytest-asyncio 31 pytestCheckHook 32 writableTmpDirAsHomeHook 33 ]; 34 35 pythonImportsCheck = [ "llm_echo" ]; 36 37 passthru.tests = llm.mkPluginTest llm-echo; 38 39 meta = { 40 description = "Debug plugin for LLM"; 41 homepage = "https://github.com/simonw/llm-echo"; 42 changelog = "https://github.com/simonw/llm-echo/releases/tag/${version}/CHANGELOG.md"; 43 license = lib.licenses.asl20; 44 maintainers = with lib.maintainers; [ philiptaron ]; 45 }; 46}