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