Unverified Commit 050423c3 authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

Merge pull request #312399 from fabaff/sigma-cli-bump

sigma-cli: 1.0.1 -> 1.0.2
parents b0be8831 83d2fca2
Loading
Loading
Loading
Loading
+11 −16
Original line number Diff line number Diff line
{ lib
, fetchFromGitHub
, python3
{
  lib,
  fetchFromGitHub,
  python3,
}:

python3.pkgs.buildPythonApplication rec {
  pname = "sigma-cli";
  version = "1.0.1";
  version = "1.0.2";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "SigmaHQ";
    repo = "sigma-cli";
    rev = "refs/tags/v${version}";
    hash = "sha256-+6+xTc9XGsPxK3OsiA4dj2ORgC0PQtZsZ5a6STwmfcg=";
    hash = "sha256-/Nciqf8O/Sq2zniaKid1VkYC/H6hgsVzMtOtFy/CiR8=";
  };

  postPatch = ''
@@ -20,11 +21,9 @@ python3.pkgs.buildPythonApplication rec {
      --replace '= "^' '= ">='
  '';

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

  propagatedBuildInputs = with python3.pkgs; [
  dependencies = with python3.pkgs; [
    click
    colorama
    prettytable
@@ -39,9 +38,7 @@ python3.pkgs.buildPythonApplication rec {
    pysigma-pipeline-windows
  ];

  nativeCheckInputs = with python3.pkgs; [
    pytestCheckHook
  ];
  nativeCheckInputs = with python3.pkgs; [ pytestCheckHook ];

  disabledTests = [
    "test_plugin_list"
@@ -61,15 +58,13 @@ python3.pkgs.buildPythonApplication rec {
    "test_check_exclude"
  ];

  pythonImportsCheck = [
    "sigma.cli"
  ];
  pythonImportsCheck = [ "sigma.cli" ];

  meta = with lib; {
    description = "Sigma command line interface";
    homepage = "https://github.com/SigmaHQ/sigma-cli";
    changelog = "https://github.com/SigmaHQ/sigma-cli/releases/tag/v${version}";
    license = with licenses; [ lgpl21Plus ];
    license = licenses.lgpl21Plus;
    maintainers = with maintainers; [ fab ];
    mainProgram = "sigma";
  };