1{ lib
2, appdirs
3, buildPythonPackage
4, defusedxml
5, fetchFromGitHub
6, marshmallow
7, pytest-datafiles
8, pytest-vcr
9, pytestCheckHook
10, python-box
11, python-dateutil
12, requests
13, requests-pkcs12
14, responses
15, restfly
16, semver
17}:
18
19buildPythonPackage rec {
20 pname = "pytenable";
21 version = "1.3.3";
22
23 src = fetchFromGitHub {
24 owner = "tenable";
25 repo = "pyTenable";
26 rev = version;
27 sha256 = "19vhy7mf972545abydywyig82gkxalp6sfwinvj71hzbihwwzjpq";
28 };
29
30 propagatedBuildInputs = [
31 semver
32 ];
33
34 buildInputs = [
35 appdirs
36 defusedxml
37 marshmallow
38 python-box
39 python-dateutil
40 requests
41 requests-pkcs12
42 restfly
43 ];
44
45 checkInputs = [
46 responses
47 pytest-datafiles
48 pytest-vcr
49 pytestCheckHook
50 ];
51
52 disabledTests = [
53 # Disable tests that requires a Docker container
54 "test_uploads_docker_push_name_typeerror"
55 "test_uploads_docker_push_tag_typeerror"
56 "test_uploads_docker_push_cs_name_typeerror"
57 "test_uploads_docker_push_cs_tag_typeerror"
58 ];
59
60 pythonImportsCheck = [ "tenable" ];
61
62 meta = with lib; {
63 description = "Python library for the Tenable.io and TenableSC API";
64 homepage = "https://github.com/tenable/pyTenable";
65 license = with licenses; [ mit ];
66 maintainers = with maintainers; [ fab ];
67 };
68}