1{ lib
2, brotli
3, buildPythonPackage
4, certifi
5, dpkt
6, fetchPypi
7, gevent
8, pytestCheckHook
9, pythonOlder
10, six
11, urllib3
12}:
13
14buildPythonPackage rec {
15 pname = "geventhttpclient";
16 version = "2.0.8";
17 format = "setuptools";
18
19 disabled = pythonOlder "3.6";
20
21 src = fetchPypi {
22 inherit pname version;
23 hash = "sha256-X3gsQZZD90vk0JGMDStjlW723ceiEn8Hy7gDOnWrNm8=";
24 };
25
26 propagatedBuildInputs = [
27 brotli
28 certifi
29 gevent
30 six
31 ];
32
33 checkInputs = [
34 dpkt
35 pytestCheckHook
36 urllib3
37 ];
38
39 __darwinAllowLocalNetworking = true;
40
41 disabledTests = [
42 # socket.gaierror: [Errno -3] Temporary failure in name resolution
43 "test_client_simple"
44 "test_client_without_leading_slas"
45 "test_request_with_headers"
46 "test_response_context_manager"
47 "test_client_ssl"
48 "test_ssl_fail_invalid_certificate"
49 "test_multi_queries_greenlet_safe"
50 ];
51
52 pythonImportsCheck = [
53 "geventhttpclient"
54 ];
55
56 meta = with lib; {
57 homepage = "https://github.com/geventhttpclient/geventhttpclient";
58 description = "High performance, concurrent HTTP client library using gevent";
59 license = licenses.mit;
60 maintainers = with maintainers; [ koral ];
61 };
62}