2021-09-23 15:35:13 +00:00
|
|
|
{ lib
|
|
|
|
, beautifulsoup4
|
|
|
|
, buildPythonPackage
|
|
|
|
, click
|
|
|
|
, colorama
|
|
|
|
, fetchFromGitHub
|
|
|
|
, html2text
|
|
|
|
, lxml
|
2023-07-15 17:15:38 +00:00
|
|
|
, markdown
|
2021-09-23 15:35:13 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, python-dateutil
|
2022-11-27 09:42:12 +00:00
|
|
|
, pythonOlder
|
2021-09-23 15:35:13 +00:00
|
|
|
, pytz
|
|
|
|
, requests
|
2024-02-29 20:09:43 +00:00
|
|
|
, setuptools
|
2021-09-23 15:35:13 +00:00
|
|
|
, simplejson
|
|
|
|
, tabulate
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "faraday-plugins";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "1.17.0";
|
2024-02-29 20:09:43 +00:00
|
|
|
pyproject = true;
|
2021-09-23 15:35:13 +00:00
|
|
|
|
2022-11-27 09:42:12 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
2021-09-23 15:35:13 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "infobyte";
|
|
|
|
repo = "faraday_plugins";
|
2022-10-30 15:09:59 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-EE61RPantD1u9NNhyPRjoRkBifM3u16b0BC2aQC8UBA=";
|
2021-09-23 15:35:13 +00:00
|
|
|
};
|
|
|
|
|
2022-11-27 09:42:12 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
2024-02-29 20:09:43 +00:00
|
|
|
--replace-warn "version=version," "version='${version}',"
|
2022-11-27 09:42:12 +00:00
|
|
|
'';
|
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
2021-09-23 15:35:13 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
beautifulsoup4
|
|
|
|
click
|
|
|
|
colorama
|
|
|
|
html2text
|
|
|
|
lxml
|
2023-07-15 17:15:38 +00:00
|
|
|
markdown
|
2021-09-23 15:35:13 +00:00
|
|
|
python-dateutil
|
|
|
|
pytz
|
|
|
|
requests
|
|
|
|
simplejson
|
|
|
|
tabulate
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-09-23 15:35:13 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTestPaths = [
|
|
|
|
# faraday itself is currently not available
|
|
|
|
"tests/test_report_collection.py"
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# Fail because of missing faraday
|
|
|
|
"test_detect_report"
|
|
|
|
"test_process_report_summary"
|
2022-09-09 14:08:57 +00:00
|
|
|
# JSON parsing issue
|
|
|
|
"test_process_report_ignore_info"
|
|
|
|
"test_process_report_tags"
|
2021-09-23 15:35:13 +00:00
|
|
|
];
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"faraday_plugins"
|
|
|
|
];
|
2021-09-23 15:35:13 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Security tools report parsers for Faraday";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "faraday-plugins";
|
2021-09-23 15:35:13 +00:00
|
|
|
homepage = "https://github.com/infobyte/faraday_plugins";
|
2022-11-27 09:42:12 +00:00
|
|
|
changelog = "https://github.com/infobyte/faraday_plugins/releases/tag/${version}";
|
2021-09-23 15:35:13 +00:00
|
|
|
license = with licenses; [ gpl3Only ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|