1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, mock 5, pytestCheckHook 6}: 7 8buildPythonPackage rec { 9 pname = "python_http_client"; 10 version = "3.3.3"; 11 12 src = fetchFromGitHub { 13 owner = "sendgrid"; 14 repo = "python-http-client"; 15 rev = version; 16 sha256 = "sha256-cZqyu67xP0UIKYbhYYTNL5kLiPjjMjayde75sqkHZhg="; 17 }; 18 19 checkInputs = [ 20 mock 21 pytestCheckHook 22 ]; 23 24 # Failure was fixed by https://github.com/sendgrid/python-http-client/commit/6d62911ab0d0645b499e14bb17c302b48f3c10e4 25 disabledTests = [ "test__daterange" ]; 26 pythonImportsCheck = [ "python_http_client" ]; 27 28 meta = with lib; { 29 description = "Python HTTP library to call APIs"; 30 homepage = "https://github.com/sendgrid/python-http-client"; 31 license = with licenses; [ mit ]; 32 maintainers = with maintainers; [ fab ]; 33 }; 34}