Commit e7a73d03 authored by Fabian Affolter's avatar Fabian Affolter
Browse files
parent 5586e0dd
Loading
Loading
Loading
Loading
+16 −6
Original line number Diff line number Diff line
@@ -5,22 +5,28 @@

python3.pkgs.buildPythonApplication rec {
  pname = "sigma-cli";
  version = "0.5.3";
  version = "0.7.2";
  format = "pyproject";

  src = fetchFromGitHub {
    owner = "SigmaHQ";
    repo = pname;
    rev = "refs/tags/v${version}";
    hash = "sha256-orJkWVBZnbhRjYDI6s5fPymzpTmZE5MsmYWp3JOKjnU=";
    hash = "sha256-yzo/BotNzTBjdkaXI1lHntpI5AyW5AbpFu3XtkWpHU4=";
  };

  postPatch = ''
    substituteInPlace pyproject.toml \
      --replace '= "^' '= ">='
  '';

  nativeBuildInputs = with python3.pkgs; [
    poetry-core
  ];

  propagatedBuildInputs = with python3.pkgs; [
    click
    colorama
    prettytable
    pysigma
    pysigma-backend-elasticsearch
@@ -37,10 +43,14 @@ python3.pkgs.buildPythonApplication rec {
    pytestCheckHook
  ];

  postPatch = ''
    substituteInPlace pyproject.toml \
      --replace '= "^' '= ">='
  '';
  disabledTests = [
    "test_plugin_list"
    "test_plugin_list_filtered"
    "test_plugin_list_search"
    "test_plugin_install_notexisting"
    "test_plugin_install"
    "test_plugin_uninstall"
  ];

  pythonImportsCheck = [
    "sigma.cli"