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

Merge pull request #224538 from fabaff/iocextract

python310Packages.iocextract: init at 1.15.1
parents 8ffe39d9 130219aa
Loading
Loading
Loading
Loading
+46 −0
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
, regex
}:

buildPythonPackage rec {
  pname = "iocextract";
  version = "1.15.1";
  format = "setuptools";

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "InQuest";
    repo = "python-iocextract";
    rev = "refs/tags/v${version}";
    hash = "sha256-muto8lr3sP44bLFIoAuPeS8pRv7pNP1JFKaAJV01TZY=";
  };

  propagatedBuildInputs = [
    regex
  ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  pythonImportsCheck = [
    "iocextract"
  ];

  pytestFlagsArray = [
    "tests.py"
  ];

  meta = with lib; {
    description = "Module to extract Indicator of Compromises (IOC)";
    homepage = "https://github.com/InQuest/python-iocextract";
    changelog = "https://github.com/InQuest/python-iocextract/releases/tag/v${version}";
    license = licenses.gpl2Only;
    maintainers = with maintainers; [ fab ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -8606,6 +8606,8 @@ with pkgs;
  ioccheck = callPackage ../tools/security/ioccheck { };
  iocextract = with python3Packages; toPythonApplication iocextract;
  ioping = callPackage ../tools/system/ioping { };
  ior = callPackage ../tools/system/ior { };
+2 −0
Original line number Diff line number Diff line
@@ -4800,6 +4800,8 @@ self: super: with self; {

  iocapture = callPackage ../development/python-modules/iocapture { };

  iocextract = callPackage ../development/python-modules/iocextract { };

  ionhash = callPackage ../development/python-modules/ionhash { };

  iotawattpy = callPackage ../development/python-modules/iotawattpy { };