mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 21:03:15 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
41 lines
844 B
Nix
41 lines
844 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 = "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 ];
|
|
};
|
|
}
|