nixpkgs/pkgs/tools/security/ioccheck/default.nix

59 lines
1.1 KiB
Nix
Raw Normal View History

2021-09-29 15:18:29 +02:00
{ lib
, fetchFromGitHub
, python3
}:
python3.pkgs.buildPythonApplication rec {
pname = "ioccheck";
version = "unstable-2021-09-29";
format = "pyproject";
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 \
2021-11-10 10:24:07 +01:00
--replace '"hurry.filesize" = "^0.9"' "" \
--replace 'vt-py = ">=0.6.1,<0.8.0"' 'vt-py = ">=0.6.1"'
2021-09-29 15:18:29 +02:00
'';
2021-11-10 10:24:07 +01:00
pythonImportsCheck = [
"ioccheck"
];
2021-09-29 15:18:29 +02:00
meta = with lib; {
description = "Tool for researching IOCs";
homepage = "https://github.com/ranguli/ioccheck";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}