diff --git a/pkgs/by-name/si/sigma-cli/package.nix b/pkgs/by-name/si/sigma-cli/package.nix index 8392ae7cd718..a538a88d4b1e 100644 --- a/pkgs/by-name/si/sigma-cli/package.nix +++ b/pkgs/by-name/si/sigma-cli/package.nix @@ -2,24 +2,22 @@ lib, fetchFromGitHub, python3, + writableTmpDirAsHomeHook, }: python3.pkgs.buildPythonApplication rec { pname = "sigma-cli"; - version = "1.0.6"; + version = "2.0.0"; pyproject = true; src = fetchFromGitHub { owner = "SigmaHQ"; repo = "sigma-cli"; tag = "v${version}"; - hash = "sha256-BINKEptzdfEJPJAfPoYWiDXdmVnG7NYVaQar7dz4Ptk="; + hash = "sha256-styE30IO5g3KoJ3IxdYiiu9xqh0OeD59WWcLk42wOCo="; }; - postPatch = '' - substituteInPlace pyproject.toml \ - --replace '= "^' '= ">=' - ''; + pythonRelaxDeps = [ "click" ]; build-system = with python3.pkgs; [ poetry-core ]; @@ -39,36 +37,8 @@ python3.pkgs.buildPythonApplication rec { pysigma-pipeline-windows ]; - nativeCheckInputs = with python3.pkgs; [ - pytest-cov-stub - pytestCheckHook - ]; - - disabledTests = [ - "test_plugin_list" - "test_plugin_list_filtered" - "test_plugin_list_search" - "test_plugin_install_notexisting" - "test_plugin_install" - "test_plugin_uninstall" - "test_backend_option_unknown_by_backend" - # Tests require network access - "test_check_with_issues" - "test_plugin_show_identifier" - "test_plugin_show_nonexisting" - "test_plugin_show_uuid" - # Tests compare STDOUT results - "test_check_valid" - "test_check_stdin" - "test_check_exclude" - ]; - - disabledTestPaths = [ - # AssertionError - "tests/test_analyze.py" - "tests/test_convert.py" - "tests/test_filters.py" - ]; + # Starting with 2.0.0 the tests wants to fetch the MITRE data + doCheck = false; pythonImportsCheck = [ "sigma.cli" ];