mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 07:34:11 +00:00
fb4465016d
Diff: https://github.com/SigmaHQ/pySigma/compare/refs/tags/v0.9.9...v0.9.11 Changelog: https://github.com/SigmaHQ/pySigma/releases/tag/v0.9.11
67 lines
1.2 KiB
Nix
67 lines
1.2 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, fetchpatch
|
|
, packaging
|
|
, poetry-core
|
|
, pyparsing
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, pythonRelaxDepsHook
|
|
, pyyaml
|
|
, requests
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pysigma";
|
|
version = "0.9.11";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "SigmaHQ";
|
|
repo = "pySigma";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-lbpx5THSegZK09jREH15RpokmdfOng2vX4tClsc/x/A=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
pythonRelaxDepsHook
|
|
];
|
|
|
|
pythonRelaxDeps = [
|
|
"packaging"
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
packaging
|
|
pyparsing
|
|
pyyaml
|
|
requests
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
disabledTests = [
|
|
# require network connection
|
|
"test_sigma_plugin_directory_default"
|
|
"test_sigma_plugin_installation"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"sigma"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Library to parse and convert Sigma rules into queries";
|
|
homepage = "https://github.com/SigmaHQ/pySigma";
|
|
changelog = "https://github.com/SigmaHQ/pySigma/releases/tag/v${version}";
|
|
license = with licenses; [ lgpl21Only ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|