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