1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, mock 5, pytestCheckHook 6, pythonOlder 7}: 8 9buildPythonPackage rec { 10 pname = "python-http-client"; 11 version = "3.3.7"; 12 format = "setuptools"; 13 14 disabled = pythonOlder "3.8"; 15 16 src = fetchFromGitHub { 17 owner = "sendgrid"; 18 repo = "python-http-client"; 19 rev = version; 20 hash = "sha256-8Qs5Jw0LMV2UucLnlFKJQ2PUhYaQx6uJdIV/4gaPH3w="; 21 }; 22 23 nativeCheckInputs = [ 24 mock 25 pytestCheckHook 26 ]; 27 28 disabledTests = [ 29 # checks date in license file and subsequently fails after new years 30 "test_daterange" 31 ]; 32 33 pythonImportsCheck = [ 34 "python_http_client" 35 ]; 36 37 meta = with lib; { 38 description = "Python HTTP library to call APIs"; 39 homepage = "https://github.com/sendgrid/python-http-client"; 40 license = with licenses; [ mit ]; 41 maintainers = with maintainers; [ fab ]; 42 }; 43}