depot/third_party/nixpkgs/pkgs/development/python-modules/geventhttpclient/default.nix
Default email a0cb138ada Project import generated by Copybara.
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
2023-02-02 18:25:31 +00:00

62 lines
1.2 KiB
Nix

{ lib
, brotli
, buildPythonPackage
, certifi
, dpkt
, fetchPypi
, gevent
, pytestCheckHook
, pythonOlder
, six
, urllib3
}:
buildPythonPackage rec {
pname = "geventhttpclient";
version = "2.0.8";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
hash = "sha256-X3gsQZZD90vk0JGMDStjlW723ceiEn8Hy7gDOnWrNm8=";
};
propagatedBuildInputs = [
brotli
certifi
gevent
six
];
nativeCheckInputs = [
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 ];
};
}