2021-10-01 09:20:50 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, python3
|
|
|
|
}:
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
let
|
|
|
|
py = python3.override {
|
2024-09-19 14:19:46 +00:00
|
|
|
self = py;
|
2021-12-06 16:07:01 +00:00
|
|
|
packageOverrides = self: super: {
|
2023-07-15 17:15:38 +00:00
|
|
|
emoji = super.emoji.overridePythonAttrs rec {
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "1.7.0";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "carpedm20";
|
|
|
|
repo = "emoji";
|
|
|
|
rev = "v${version}";
|
2024-01-25 14:12:00 +00:00
|
|
|
hash = "sha256-vKQ51RP7uy57vP3dOnHZRSp/Wz+YDzeLUR8JnIELE/I=";
|
2022-08-12 12:06:08 +00:00
|
|
|
};
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
# Support for later tweepy releases is missing
|
|
|
|
# https://github.com/ranguli/ioccheck/issues/70
|
2023-07-15 17:15:38 +00:00
|
|
|
tweepy = super.tweepy.overridePythonAttrs rec {
|
2021-12-06 16:07:01 +00:00
|
|
|
version = "3.10.0";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tweepy";
|
|
|
|
repo = "tweepy";
|
|
|
|
rev = "v${version}";
|
2024-01-25 14:12:00 +00:00
|
|
|
hash = "sha256-3BbQeCaAhlz9h5GnhficNubJHu4kTpnCDM4oKzlti0w=";
|
2021-12-06 16:07:01 +00:00
|
|
|
};
|
|
|
|
doCheck = false;
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
2021-12-06 16:07:01 +00:00
|
|
|
};
|
|
|
|
};
|
2024-01-25 14:12:00 +00:00
|
|
|
in py.pkgs.buildPythonApplication rec {
|
2021-10-01 09:20:50 +00:00
|
|
|
pname = "ioccheck";
|
|
|
|
version = "unstable-2021-09-29";
|
2024-01-25 14:12:00 +00:00
|
|
|
pyproject = true;
|
2021-10-01 09:20:50 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ranguli";
|
2024-01-25 14:12:00 +00:00
|
|
|
repo = "ioccheck";
|
2021-10-01 09:20:50 +00:00
|
|
|
rev = "db02d921e2519b77523a200ca2d78417802463db";
|
2023-02-22 10:55:15 +00:00
|
|
|
hash = "sha256-qf5tHIpbj/BfrzUST+EzohKh1hUg09KwF+vT0tj1+FE=";
|
2021-10-01 09:20:50 +00:00
|
|
|
};
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
nativeBuildInputs = with py.pkgs; [
|
2021-10-01 09:20:50 +00:00
|
|
|
poetry-core
|
2024-01-25 14:12:00 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
pythonRelaxDeps = [
|
|
|
|
"backoff"
|
|
|
|
"pyfiglet"
|
|
|
|
"tabulate"
|
|
|
|
"termcolor"
|
|
|
|
"vt-py"
|
2021-10-01 09:20:50 +00:00
|
|
|
];
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
propagatedBuildInputs = with py.pkgs; [
|
2021-10-01 09:20:50 +00:00
|
|
|
backoff
|
|
|
|
click
|
|
|
|
emoji
|
|
|
|
jinja2
|
|
|
|
pyfiglet
|
|
|
|
ratelimit
|
|
|
|
requests
|
|
|
|
shodan
|
|
|
|
tabulate
|
|
|
|
termcolor
|
|
|
|
tweepy
|
|
|
|
vt-py
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = with py.pkgs; [
|
2021-10-01 09:20:50 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
# Can be removed with the next release
|
|
|
|
substituteInPlace pyproject.toml \
|
2024-01-25 14:12:00 +00:00
|
|
|
--replace '"hurry.filesize" = "^0.9"' ""
|
2021-10-01 09:20:50 +00:00
|
|
|
'';
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"ioccheck"
|
|
|
|
];
|
2021-10-01 09:20:50 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Tool for researching IOCs";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "ioccheck";
|
2021-10-01 09:20:50 +00:00
|
|
|
homepage = "https://github.com/ranguli/ioccheck";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|