fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
82 lines
1.6 KiB
Nix
82 lines
1.6 KiB
Nix
{
|
|
lib,
|
|
beautifulsoup4,
|
|
buildPythonPackage,
|
|
click,
|
|
colorama,
|
|
fetchFromGitHub,
|
|
html2text,
|
|
lxml,
|
|
markdown,
|
|
pytestCheckHook,
|
|
python-dateutil,
|
|
pythonOlder,
|
|
pytz,
|
|
requests,
|
|
setuptools,
|
|
simplejson,
|
|
tabulate,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "faraday-plugins";
|
|
version = "1.18.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "infobyte";
|
|
repo = "faraday_plugins";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-oYE7Iik0+CbOfxF9IeeZotpGqV8TTz15MxJEC4VBrhk=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.py \
|
|
--replace-fail "version=version," "version='${version}',"
|
|
'';
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
beautifulsoup4
|
|
click
|
|
colorama
|
|
html2text
|
|
lxml
|
|
markdown
|
|
python-dateutil
|
|
pytz
|
|
requests
|
|
simplejson
|
|
tabulate
|
|
];
|
|
|
|
nativeCheckInputs = [ 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 = licenses.gpl3Only;
|
|
maintainers = with maintainers; [ fab ];
|
|
mainProgram = "faraday-plugins";
|
|
};
|
|
}
|