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
|
2023-10-09 19:29:22 +00:00
|
|
|
, stdenv
|
2022-08-12 12:06:08 +00:00
|
|
|
, urllib3
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "geventhttpclient";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "2.0.11";
|
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;
|
2024-01-13 08:15:51 +00:00
|
|
|
hash = "sha256-VJ0POvCEILmtK+7aIRFTx2BbW6QJsijbfxuByL++xrQ=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
brotli
|
|
|
|
certifi
|
|
|
|
gevent
|
|
|
|
six
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-09-18 10:52:07 +00:00
|
|
|
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
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
# lots of: [Errno 48] Address already in use: ('127.0.0.1', 54323)
|
|
|
|
doCheck = !stdenv.isDarwin;
|
|
|
|
|
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";
|
2023-10-09 19:29:22 +00:00
|
|
|
changelog = "https://github.com/geventhttpclient/geventhttpclient/releases/tag/${version}";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ koral ];
|
|
|
|
};
|
|
|
|
}
|