depot/third_party/nixpkgs/pkgs/development/python-modules/geventhttpclient/default.nix
Default email 92b3d6365d Project import generated by Copybara.
GitOrigin-RevId: 412b9917cea092f3d39f9cd5dead4effd5bc4053
2022-10-30 16:09:59 +01: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
];
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 ];
};
}