depot/third_party/nixpkgs/pkgs/tools/security/zeekscript/default.nix
Default email 23b612e36f Project import generated by Copybara.
GitOrigin-RevId: ae5c332cbb5827f6b1f02572496b141021de335f
2024-01-25 23:12:00 +09:00

40 lines
846 B
Nix

{ lib
, python3
, fetchPypi
}:
python3.pkgs.buildPythonApplication rec {
pname = "zeekscript";
version = "1.2.8";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-v0PJY0Ahxa4k011AwtWSIAWBXvt3Aybrd382j1SIT6M=";
};
postPatch = ''
sed -i '/name = "zeekscript"/a version = "${version}"' pyproject.toml
'';
nativeBuildInputs = with python3.pkgs; [
setuptools
wheel
];
propagatedBuildInputs = with python3.pkgs; [
tree-sitter
];
pythonImportsCheck = [
"zeekscript"
];
meta = with lib; {
description = "A Zeek script formatter and analyzer";
homepage = "https://github.com/zeek/zeekscript";
changelog = "https://github.com/zeek/zeekscript/blob/v${version}/CHANGES";
license = licenses.bsd3;
maintainers = with maintainers; [ fab tobim ];
};
}