Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 35 lines 742 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 nativeBuildInputs = with python3.pkgs; [ 17 setuptools 18 ]; 19 20 propagatedBuildInputs = with python3.pkgs; [ 21 tree-sitter 22 ]; 23 24 pythonImportsCheck = [ 25 "zeekscript" 26 ]; 27 28 meta = with lib; { 29 description = "A Zeek script formatter and analyzer"; 30 homepage = "https://github.com/zeek/zeekscript"; 31 changelog = "https://github.com/zeek/zeekscript/blob/v${version}/CHANGES"; 32 license = licenses.bsd3; 33 maintainers = with maintainers; [ fab tobim ]; 34 }; 35}