From 95140031d45cd0ae33ca5249710d741e7978a582 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 29 Sep 2021 15:18:29 +0200 Subject: [PATCH] ioccheck: init at unstable-2021-09-29 --- pkgs/tools/security/ioccheck/default.nix | 57 ++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 59 insertions(+) create mode 100644 pkgs/tools/security/ioccheck/default.nix diff --git a/pkgs/tools/security/ioccheck/default.nix b/pkgs/tools/security/ioccheck/default.nix new file mode 100644 index 000000000000..1ad7bfd85fe2 --- /dev/null +++ b/pkgs/tools/security/ioccheck/default.nix @@ -0,0 +1,57 @@ +{ lib +, fetchFromGitHub +, python3 +}: + +python3.pkgs.buildPythonApplication rec { + pname = "ioccheck"; + version = "unstable-2021-09-29"; + format = "pyproject"; + + disabled = python3.pythonOlder "3.7"; + + src = fetchFromGitHub { + owner = "ranguli"; + repo = pname; + rev = "db02d921e2519b77523a200ca2d78417802463db"; + sha256 = "0lgqypcd5lzb2yqd5lr02pba24m26ghly4immxgz13svi8f6vzm9"; + }; + + nativeBuildInputs = with python3.pkgs; [ + poetry-core + ]; + + propagatedBuildInputs = with python3.pkgs; [ + backoff + click + emoji + jinja2 + pyfiglet + ratelimit + requests + shodan + tabulate + termcolor + tweepy + vt-py + ]; + + checkInputs = with python3.pkgs; [ + pytestCheckHook + ]; + + postPatch = '' + # Can be removed with the next release + substituteInPlace pyproject.toml \ + --replace '"hurry.filesize" = "^0.9"' "" + ''; + + pythonImportsCheck = [ "ioccheck" ]; + + meta = with lib; { + description = "Tool for researching IOCs"; + homepage = "https://github.com/ranguli/ioccheck"; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index add6df83af21..79677fa2a91c 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -6234,6 +6234,8 @@ with pkgs; iodine = callPackage ../tools/networking/iodine { }; + ioccheck = callPackage ../tools/security/ioccheck { }; + ioping = callPackage ../tools/system/ioping { }; iops = callPackage ../tools/system/iops { };