2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
2024-09-19 14:19:46 +00:00
|
|
|
setuptools,
|
2024-06-05 15:53:02 +00:00
|
|
|
certifi,
|
|
|
|
charset-normalizer,
|
|
|
|
fetchFromGitHub,
|
|
|
|
idna,
|
|
|
|
lxml,
|
|
|
|
pytest-mock,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
requests,
|
|
|
|
responses,
|
|
|
|
urllib3,
|
2021-10-14 00:43:12 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "qualysclient";
|
2023-03-15 16:39:30 +00:00
|
|
|
version = "0.0.4.8.3";
|
2024-09-19 14:19:46 +00:00
|
|
|
pyproject = true;
|
2021-10-14 00:43:12 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "woodtechie1428";
|
|
|
|
repo = pname;
|
2023-03-15 16:39:30 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-+SZICysgSC4XeXC9CCl6Yxb47V9c1eMp7KcpH8J7kK0=";
|
2021-10-14 00:43:12 +00:00
|
|
|
};
|
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
2024-09-19 14:19:46 +00:00
|
|
|
--replace-fail "version=__version__," 'version="${version}",'
|
2023-04-29 16:46:19 +00:00
|
|
|
'';
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
build-system = [ setuptools ];
|
|
|
|
|
|
|
|
dependencies = [
|
2021-10-14 00:43:12 +00:00
|
|
|
certifi
|
|
|
|
charset-normalizer
|
|
|
|
idna
|
|
|
|
lxml
|
|
|
|
requests
|
|
|
|
urllib3
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-10-14 00:43:12 +00:00
|
|
|
pytest-mock
|
|
|
|
pytestCheckHook
|
|
|
|
responses
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "qualysclient" ];
|
2021-10-14 00:43:12 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python SDK for interacting with the Qualys API";
|
|
|
|
homepage = "https://qualysclient.readthedocs.io/";
|
2023-03-15 16:39:30 +00:00
|
|
|
changelog = "https://github.com/woodtechie1428/qualysclient/releases/tag/v${version}";
|
2021-10-14 00:43:12 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|