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