1{ lib
2, beautifulsoup4
3, buildPythonPackage
4, click
5, colorama
6, fetchFromGitHub
7, html2text
8, lxml
9, pytestCheckHook
10, python-dateutil
11, pytz
12, requests
13, simplejson
14, tabulate
15}:
16
17buildPythonPackage rec {
18 pname = "faraday-plugins";
19 version = "1.8.0";
20 format = "setuptools";
21
22 src = fetchFromGitHub {
23 owner = "infobyte";
24 repo = "faraday_plugins";
25 rev = "refs/tags/${version}";
26 hash = "sha256-KAfy2AQWZYFT/+rX8dNe8aWTFI0kkGg5IaSHhwYGk3A=";
27 };
28
29 propagatedBuildInputs = [
30 beautifulsoup4
31 click
32 colorama
33 html2text
34 lxml
35 python-dateutil
36 pytz
37 requests
38 simplejson
39 tabulate
40 ];
41
42 checkInputs = [
43 pytestCheckHook
44 ];
45
46 disabledTestPaths = [
47 # faraday itself is currently not available
48 "tests/test_report_collection.py"
49 ];
50
51 disabledTests = [
52 # Fail because of missing faraday
53 "test_detect_report"
54 "test_process_report_summary"
55 # JSON parsing issue
56 "test_process_report_ignore_info"
57 "test_process_report_tags"
58 ];
59
60 pythonImportsCheck = [
61 "faraday_plugins"
62 ];
63
64 meta = with lib; {
65 description = "Security tools report parsers for Faraday";
66 homepage = "https://github.com/infobyte/faraday_plugins";
67 license = with licenses; [ gpl3Only ];
68 maintainers = with maintainers; [ fab ];
69 };
70}