python3Packages.tree-sitter-zeek: 0.2.12 -> 0.2.13; zeekscript: 1.3.3 -> 1.3.4 (#514232)

This commit is contained in:
Michael Daniels
2026-05-03 00:45:33 +00:00
committed by GitHub
2 changed files with 5 additions and 19 deletions
+3 -17
View File
@@ -2,19 +2,18 @@
lib,
python3,
fetchFromGitHub,
writeScript,
}:
python3.pkgs.buildPythonApplication rec {
pname = "zeekscript";
version = "1.3.3";
version = "1.3.4";
pyproject = true;
src = fetchFromGitHub {
owner = "zeek";
repo = "zeekscript";
rev = "065edacf0321dd9a0cdd64285b93dec954bf448e";
hash = "sha256-uNVmY+yJy/4H/zRGqg68Pop2TcwZgsrT46cdx3bhKIo=";
tag = "v${version}";
hash = "sha256-icc5mMhl/MK0+0fLYJG07wqWaKKX2QFcpD1IIvdmASw=";
};
build-system = with python3.pkgs; [ setuptools ];
@@ -36,19 +35,6 @@ python3.pkgs.buildPythonApplication rec {
"zeekscript"
];
passthru.updateScript = writeScript "update-${pname}" ''
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p git common-updater-scripts
tmpdir="$(mktemp -d)"
git clone "${src.gitRepoUrl}" "$tmpdir"
pushd "$tmpdir"
newVersion=$(cat VERSION)
newRevision=$(git log -s -n 1 --pretty='format:%H' VERSION)
popd
rm -rf "$tmpdir"
update-source-version "${pname}" "$newVersion" --rev="$newRevision"
'';
meta = {
description = "Zeek script formatter and analyzer";
homepage = "https://github.com/zeek/zeekscript";
@@ -8,14 +8,14 @@
buildPythonPackage rec {
pname = "tree-sitter-zeek";
version = "0.2.12";
version = "0.2.13";
pyproject = true;
src = fetchFromGitHub {
owner = "zeek";
repo = "tree-sitter-zeek";
tag = "v${version}";
hash = "sha256-BWrzPMsUgbIvdWsafTtXApmGGr7Sdpb382iqhM8Etqk=";
hash = "sha256-okm65ls/38PnzHpfdNT1McouaZ1r1dBflXcGUzaM9Z0=";
};
build-system = [ setuptools ];