1{ lib 2, buildPythonPackage 3, pythonOlder 4, fetchPypi 5, backports_ssl_match_hostname 6, brotli 7, certifi 8, gevent 9, six 10, dpkt 11, pytestCheckHook 12}: 13 14buildPythonPackage rec { 15 pname = "geventhttpclient"; 16 version = "1.5.2"; 17 18 src = fetchPypi { 19 inherit pname version; 20 sha256 = "f3c5884d62be75162426728e3d86788740b13e363b197ef592f1443dba240709"; 21 }; 22 23 propagatedBuildInputs = [ 24 brotli 25 certifi 26 gevent 27 six 28 ] ++ lib.optionals (pythonOlder "3.7") [ 29 backports_ssl_match_hostname 30 ]; 31 32 checkInputs = [ 33 dpkt 34 pytestCheckHook 35 ]; 36 37 disabledTests = [ 38 # socket.gaierror: [Errno -2] Name or service not known 39 "test_client_simple" 40 "test_client_without_leading_slas" 41 "test_request_with_headers" 42 "test_response_context_manager" 43 "test_client_ssl" 44 "test_ssl_fail_invalid_certificate" 45 "test_multi_queries_greenlet_safe" 46 ]; 47 48 meta = with lib; { 49 homepage = "https://github.com/gwik/geventhttpclient"; 50 description = "HTTP client library for gevent"; 51 license = licenses.mit; 52 maintainers = with maintainers; [ koral ]; 53 }; 54 55}