02cf88bb76
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
60 lines
1.1 KiB
Nix
60 lines
1.1 KiB
Nix
{ lib
|
|
, brotli
|
|
, buildPythonPackage
|
|
, certifi
|
|
, dpkt
|
|
, fetchPypi
|
|
, gevent
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, six
|
|
, urllib3
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "geventhttpclient";
|
|
version = "2.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-SegzLaon80HeCNk4h4KJs7dzaVzblvIpZRjC1uPr7JI=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
brotli
|
|
certifi
|
|
gevent
|
|
six
|
|
];
|
|
|
|
checkInputs = [
|
|
dpkt
|
|
pytestCheckHook
|
|
urllib3
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|