diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2021-09-29 15:18:29 +0200 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2021-09-29 15:18:29 +0200 |
commit | 95140031d45cd0ae33ca5249710d741e7978a582 (patch) | |
tree | 76d762bc2482cf0e9780104987dcd355fd85238a /pkgs/tools/security/ioccheck | |
parent | e0ad11f61b428bb81a33749183c752a96dfa8e7e (diff) |
ioccheck: init at unstable-2021-09-29
Diffstat (limited to 'pkgs/tools/security/ioccheck')
-rw-r--r-- | pkgs/tools/security/ioccheck/default.nix | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/pkgs/tools/security/ioccheck/default.nix b/pkgs/tools/security/ioccheck/default.nix new file mode 100644 index 0000000000000..1ad7bfd85fe29 --- /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 ]; + }; +} |