at master 46 lines 926 B view raw
1{ 2 lib, 3 python3, 4 fetchPypi, 5}: 6 7python3.pkgs.buildPythonApplication rec { 8 pname = "zeekscript"; 9 version = "1.2.8"; 10 pyproject = true; 11 12 src = fetchPypi { 13 inherit pname version; 14 hash = "sha256-v0PJY0Ahxa4k011AwtWSIAWBXvt3Aybrd382j1SIT6M="; 15 }; 16 17 postPatch = '' 18 sed -i '/name = "zeekscript"/a version = "${version}"' pyproject.toml 19 ''; 20 21 nativeBuildInputs = with python3.pkgs; [ 22 setuptools 23 wheel 24 ]; 25 26 propagatedBuildInputs = with python3.pkgs; [ 27 tree-sitter 28 ]; 29 30 pythonImportsCheck = [ 31 "zeekscript" 32 ]; 33 34 meta = { 35 description = "Zeek script formatter and analyzer"; 36 homepage = "https://github.com/zeek/zeekscript"; 37 changelog = "https://github.com/zeek/zeekscript/blob/v${version}/CHANGES"; 38 license = lib.licenses.bsd3; 39 maintainers = with lib.maintainers; [ 40 fab 41 tobim 42 ]; 43 # Incompatible with tree-sitter > 0.21. 44 broken = true; 45 }; 46}