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