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-09-22 12:36:57 +00:00
|
|
|
version = "1.4.8";
|
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-09-22 12:36:57 +00:00
|
|
|
hash = "sha256-alBEKCYwLIbQanKTzkd3NnfOudhGhKhg4sFqddWdzQA=";
|
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
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
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";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|