blob: 7e30b8e83f490ad26bd040f96d767bef5f0fe702 (
plain) (
blame)
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
|
{ lib
, buildPythonPackage
, pythonOlder
, fetchPypi
, backports_ssl_match_hostname
, brotli
, certifi
, gevent
, six
, dpkt
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "geventhttpclient";
version = "1.5.3";
src = fetchPypi {
inherit pname version;
sha256 = "d80ec9ff42b7219f33558185499d0b4365597fc55ff886207b45f5632e099780";
};
propagatedBuildInputs = [
brotli
certifi
gevent
six
] ++ lib.optionals (pythonOlder "3.7") [
backports_ssl_match_hostname
];
checkInputs = [
dpkt
pytestCheckHook
];
disabledTests = [
# socket.gaierror: [Errno -2] Name or service not known
"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"
];
meta = with lib; {
homepage = "https://github.com/gwik/geventhttpclient";
description = "HTTP client library for gevent";
license = licenses.mit;
maintainers = with maintainers; [ koral ];
};
}
|