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
|
|
|
|
, simplejson
|
|
|
|
, tabulate
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "faraday-plugins";
|
2023-10-19 13:55:26 +00:00
|
|
|
version = "1.14.0";
|
2021-12-06 16:07:01 +00:00
|
|
|
format = "setuptools";
|
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}";
|
2023-10-19 13:55:26 +00:00
|
|
|
hash = "sha256-qFA0AVebHd/Ny8x+rUkueLZhYB/PwL7o/qpUnZCRsEA=";
|
2021-09-23 15:35:13 +00:00
|
|
|
};
|
|
|
|
|
2022-11-27 09:42:12 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace "version=version," "version='${version}',"
|
|
|
|
'';
|
|
|
|
|
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";
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|