Merge pull request #139897 from fabaff/ioccheck
This commit is contained in:
commit
e0fd972a0a
4 changed files with 108 additions and 0 deletions
47
pkgs/development/python-modules/vt-py/default.nix
Normal file
47
pkgs/development/python-modules/vt-py/default.nix
Normal file
|
@ -0,0 +1,47 @@
|
|||
{ lib
|
||||
, aiohttp
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pytest-asyncio
|
||||
, pytest-httpserver
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "vt-py";
|
||||
version = "0.7.4";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "VirusTotal";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "149fgrqnwf8nyv3msj6p614zbdi7m7s785y3fvh8fm8k7lmgqk8w";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
aiohttp
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytest-asyncio
|
||||
pytest-httpserver
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "'pytest-runner'" ""
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [ "vt" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python client library for VirusTotal";
|
||||
homepage = "https://virustotal.github.io/vt-py/";
|
||||
license = with licenses; [ asl20 ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
57
pkgs/tools/security/ioccheck/default.nix
Normal file
57
pkgs/tools/security/ioccheck/default.nix
Normal file
|
@ -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 ];
|
||||
};
|
||||
}
|
|
@ -6241,6 +6241,8 @@ with pkgs;
|
|||
|
||||
iodine = callPackage ../tools/networking/iodine { };
|
||||
|
||||
ioccheck = callPackage ../tools/security/ioccheck { };
|
||||
|
||||
ioping = callPackage ../tools/system/ioping { };
|
||||
|
||||
iops = callPackage ../tools/system/iops { };
|
||||
|
|
|
@ -9488,6 +9488,8 @@ in {
|
|||
|
||||
vsure = callPackage ../development/python-modules/vsure { };
|
||||
|
||||
vt-py = callPackage ../development/python-modules/vt-py { };
|
||||
|
||||
vtk = toPythonModule (pkgs.vtk.override {
|
||||
pythonInterpreter = python;
|
||||
enablePython = true;
|
||||
|
|
Loading…
Reference in a new issue