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