1{
2 lib,
3 buildPythonPackage,
4 setuptools,
5 certifi,
6 charset-normalizer,
7 fetchFromGitHub,
8 idna,
9 lxml,
10 pytest-mock,
11 pytestCheckHook,
12 pythonOlder,
13 requests,
14 responses,
15 urllib3,
16}:
17
18buildPythonPackage rec {
19 pname = "qualysclient";
20 version = "0.0.4.8.3";
21 pyproject = true;
22
23 disabled = pythonOlder "3.6";
24
25 src = fetchFromGitHub {
26 owner = "woodtechie1428";
27 repo = "qualysclient";
28 tag = "v${version}";
29 hash = "sha256-+SZICysgSC4XeXC9CCl6Yxb47V9c1eMp7KcpH8J7kK0=";
30 };
31
32 postPatch = ''
33 substituteInPlace setup.py \
34 --replace-fail "version=__version__," 'version="${version}",'
35 '';
36
37 build-system = [ setuptools ];
38
39 dependencies = [
40 certifi
41 charset-normalizer
42 idna
43 lxml
44 requests
45 urllib3
46 ];
47
48 nativeCheckInputs = [
49 pytest-mock
50 pytestCheckHook
51 responses
52 ];
53
54 pythonImportsCheck = [ "qualysclient" ];
55
56 meta = with lib; {
57 description = "Python SDK for interacting with the Qualys API";
58 homepage = "https://qualysclient.readthedocs.io/";
59 changelog = "https://github.com/woodtechie1428/qualysclient/releases/tag/v${version}";
60 license = licenses.mit;
61 maintainers = with maintainers; [ fab ];
62 };
63}