ce641f4048
GitOrigin-RevId: bc5d68306b40b8522ffb69ba6cff91898c2fbbff
55 lines
1.1 KiB
Nix
55 lines
1.1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, fetchPypi
|
|
, backports_ssl_match_hostname
|
|
, brotli
|
|
, certifi
|
|
, gevent
|
|
, six
|
|
, dpkt
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "geventhttpclient";
|
|
version = "1.5.2";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "f3c5884d62be75162426728e3d86788740b13e363b197ef592f1443dba240709";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
|
|
}
|