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