depot/third_party/nixpkgs/pkgs/development/python-modules/qualysclient/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

60 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
certifi,
charset-normalizer,
fetchFromGitHub,
idna,
lxml,
pytest-mock,
pytestCheckHook,
pythonOlder,
requests,
responses,
urllib3,
}:
buildPythonPackage rec {
pname = "qualysclient";
version = "0.0.4.8.3";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "woodtechie1428";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-+SZICysgSC4XeXC9CCl6Yxb47V9c1eMp7KcpH8J7kK0=";
};
postPatch = ''
substituteInPlace setup.py \
--replace "version=__version__," 'version="${version}",'
'';
propagatedBuildInputs = [
certifi
charset-normalizer
idna
lxml
requests
urllib3
];
nativeCheckInputs = [
pytest-mock
pytestCheckHook
responses
];
pythonImportsCheck = [ "qualysclient" ];
meta = with lib; {
description = "Python SDK for interacting with the Qualys API";
homepage = "https://qualysclient.readthedocs.io/";
changelog = "https://github.com/woodtechie1428/qualysclient/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}