b450903751
GitOrigin-RevId: 74a1793c659d09d7cf738005308b1f86c90cb59b
62 lines
1.2 KiB
Nix
62 lines
1.2 KiB
Nix
{ lib
|
|
, brotli
|
|
, buildPythonPackage
|
|
, certifi
|
|
, dpkt
|
|
, fetchPypi
|
|
, gevent
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, six
|
|
, urllib3
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "geventhttpclient";
|
|
version = "2.0.2";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-gTWoUgCxcN73KT0B3RVXkx/NG+wax4xSrXzt0iNoubo=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
brotli
|
|
certifi
|
|
gevent
|
|
six
|
|
];
|
|
|
|
checkInputs = [
|
|
dpkt
|
|
pytestCheckHook
|
|
urllib3
|
|
];
|
|
|
|
__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";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ koral ];
|
|
};
|
|
}
|