python312Packages.dash-renderer: remove (#369714)
[NixPkgs.git] / pkgs / development / python-modules / pysigma / default.nix
blobecdd45dc5800cdae7d5c52029291e8538d3456f6
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   jinja2,
6   packaging,
7   poetry-core,
8   pyparsing,
9   pytestCheckHook,
10   pythonOlder,
11   pyyaml,
12   requests,
15 buildPythonPackage rec {
16   pname = "pysigma";
17   version = "0.11.18";
18   pyproject = true;
20   disabled = pythonOlder "3.8";
22   src = fetchFromGitHub {
23     owner = "SigmaHQ";
24     repo = "pySigma";
25     tag = "v${version}";
26     hash = "sha256-AbGmDDJUBvGwZixNKY+iLTKUENSAXHOAdztmbIQIEKs=";
27   };
29   pythonRelaxDeps = [
30     "jinja2"
31     "packaging"
32   ];
34   build-system = [ poetry-core ];
36   dependencies = [
37     jinja2
38     packaging
39     pyparsing
40     pyyaml
41     requests
42   ];
44   nativeCheckInputs = [ pytestCheckHook ];
46   disabledTests = [
47     # Tests require network connection
48     "test_sigma_plugin_directory_default"
49     "test_sigma_plugin_installation"
50   ];
52   pythonImportsCheck = [ "sigma" ];
54   meta = with lib; {
55     description = "Library to parse and convert Sigma rules into queries";
56     homepage = "https://github.com/SigmaHQ/pySigma";
57     changelog = "https://github.com/SigmaHQ/pySigma/releases/tag/v${version}";
58     license = with licenses; [ lgpl21Only ];
59     maintainers = with maintainers; [ fab ];
60   };