at master 818 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 llm, 7 llm-jq, 8}: 9buildPythonPackage rec { 10 pname = "llm-jq"; 11 version = "0.1.1"; 12 pyproject = true; 13 14 src = fetchFromGitHub { 15 owner = "simonw"; 16 repo = "llm-jq"; 17 tag = version; 18 hash = "sha256-Mf/tbB9+UdmSRpulqv5Wagr8wjDcRrNs2741DNQZhO4="; 19 }; 20 21 build-system = [ setuptools ]; 22 23 dependencies = [ llm ]; 24 25 pythonImportsCheck = [ "llm_jq" ]; 26 27 passthru.tests = llm.mkPluginTest llm-jq; 28 29 meta = { 30 description = "Write and execute jq programs with the help of LLM"; 31 homepage = "https://github.com/simonw/llm-jq"; 32 changelog = "https://github.com/simonw/llm-jq/releases/tag/${version}"; 33 license = lib.licenses.asl20; 34 maintainers = with lib.maintainers; [ 35 erethon 36 josh 37 philiptaron 38 ]; 39 }; 40}