2021-04-05 15:23:46 +00:00
|
|
|
{ lib
|
2021-07-16 19:40:57 +00:00
|
|
|
, appdirs
|
2021-04-05 15:23:46 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, defusedxml
|
|
|
|
, fetchFromGitHub
|
|
|
|
, marshmallow
|
|
|
|
, pytest-datafiles
|
|
|
|
, pytest-vcr
|
|
|
|
, pytestCheckHook
|
|
|
|
, python-box
|
|
|
|
, python-dateutil
|
2022-01-26 04:04:25 +00:00
|
|
|
, pythonOlder
|
2021-04-05 15:23:46 +00:00
|
|
|
, requests
|
|
|
|
, requests-pkcs12
|
|
|
|
, responses
|
|
|
|
, restfly
|
|
|
|
, semver
|
2021-12-06 16:07:01 +00:00
|
|
|
, typing-extensions
|
2021-04-05 15:23:46 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytenable";
|
2022-12-28 21:21:41 +00:00
|
|
|
version = "1.4.11";
|
2022-01-26 04:04:25 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2021-04-05 15:23:46 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tenable";
|
|
|
|
repo = "pyTenable";
|
2022-06-26 10:26:21 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2022-12-28 21:21:41 +00:00
|
|
|
hash = "sha256-GSEMjgG8Q+gzHQWRbXr/qiGP6U6ydPxu0JsD56mRNWU=";
|
2021-04-05 15:23:46 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
semver
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2021-07-16 19:40:57 +00:00
|
|
|
appdirs
|
2021-04-05 15:23:46 +00:00
|
|
|
defusedxml
|
|
|
|
marshmallow
|
|
|
|
python-box
|
|
|
|
python-dateutil
|
|
|
|
requests
|
|
|
|
requests-pkcs12
|
|
|
|
restfly
|
2021-12-06 16:07:01 +00:00
|
|
|
typing-extensions
|
2021-04-05 15:23:46 +00:00
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-04-05 15:23:46 +00:00
|
|
|
responses
|
|
|
|
pytest-datafiles
|
|
|
|
pytest-vcr
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# Disable tests that requires a Docker container
|
|
|
|
"test_uploads_docker_push_name_typeerror"
|
|
|
|
"test_uploads_docker_push_tag_typeerror"
|
|
|
|
"test_uploads_docker_push_cs_name_typeerror"
|
|
|
|
"test_uploads_docker_push_cs_tag_typeerror"
|
|
|
|
];
|
|
|
|
|
2022-01-26 04:04:25 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"tenable"
|
|
|
|
];
|
2021-04-05 15:23:46 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python library for the Tenable.io and TenableSC API";
|
|
|
|
homepage = "https://github.com/tenable/pyTenable";
|
2022-11-27 09:42:12 +00:00
|
|
|
changelog = "https://github.com/tenable/pyTenable/releases/tag/${version}";
|
2021-04-05 15:23:46 +00:00
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|