a3d4720129
GitOrigin-RevId: e182da8622a354d44c39b3d7a542dc12cd7baa5f
79 lines
1.5 KiB
Nix
79 lines
1.5 KiB
Nix
{ lib
|
|
, beautifulsoup4
|
|
, buildPythonPackage
|
|
, click
|
|
, colorama
|
|
, fetchFromGitHub
|
|
, html2text
|
|
, lxml
|
|
, pytestCheckHook
|
|
, python-dateutil
|
|
, pythonOlder
|
|
, pytz
|
|
, requests
|
|
, simplejson
|
|
, tabulate
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "faraday-plugins";
|
|
version = "1.9.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "infobyte";
|
|
repo = "faraday_plugins";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-ZWPImBqBpiz3y4OpDZLCfL3Oe/J+qP1Hduas3p0unCg=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.py \
|
|
--replace "version=version," "version='${version}',"
|
|
'';
|
|
|
|
propagatedBuildInputs = [
|
|
beautifulsoup4
|
|
click
|
|
colorama
|
|
html2text
|
|
lxml
|
|
python-dateutil
|
|
pytz
|
|
requests
|
|
simplejson
|
|
tabulate
|
|
];
|
|
|
|
checkInputs = [
|
|
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"
|
|
# JSON parsing issue
|
|
"test_process_report_ignore_info"
|
|
"test_process_report_tags"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"faraday_plugins"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Security tools report parsers for Faraday";
|
|
homepage = "https://github.com/infobyte/faraday_plugins";
|
|
changelog = "https://github.com/infobyte/faraday_plugins/releases/tag/${version}";
|
|
license = with licenses; [ gpl3Only ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|