2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2021-09-18 10:52:07 +00:00
|
|
|
, brotli
|
2022-02-10 20:34:41 +00:00
|
|
|
, buildPythonPackage
|
2020-04-24 23:36:52 +00:00
|
|
|
, certifi
|
2021-09-18 10:52:07 +00:00
|
|
|
, dpkt
|
2022-02-10 20:34:41 +00:00
|
|
|
, fetchPypi
|
|
|
|
, gevent
|
2021-09-18 10:52:07 +00:00
|
|
|
, pytestCheckHook
|
2022-02-10 20:34:41 +00:00
|
|
|
, pythonOlder
|
|
|
|
, six
|
2022-08-12 12:06:08 +00:00
|
|
|
, urllib3
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "geventhttpclient";
|
2022-10-30 15:09:59 +00:00
|
|
|
version = "2.0.8";
|
2022-02-10 20:34:41 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-10-30 15:09:59 +00:00
|
|
|
hash = "sha256-X3gsQZZD90vk0JGMDStjlW723ceiEn8Hy7gDOnWrNm8=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
brotli
|
|
|
|
certifi
|
|
|
|
gevent
|
|
|
|
six
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
dpkt
|
|
|
|
pytestCheckHook
|
2022-08-12 12:06:08 +00:00
|
|
|
urllib3
|
2021-09-18 10:52:07 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
disabledTests = [
|
2022-08-12 12:06:08 +00:00
|
|
|
# socket.gaierror: [Errno -3] Temporary failure in name resolution
|
2021-09-18 10:52:07 +00:00
|
|
|
"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"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"geventhttpclient"
|
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2022-08-12 12:06:08 +00:00
|
|
|
homepage = "https://github.com/geventhttpclient/geventhttpclient";
|
|
|
|
description = "High performance, concurrent HTTP client library using gevent";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ koral ];
|
|
|
|
};
|
|
|
|
}
|