mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-16 02:33:25 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
63 lines
1.2 KiB
Nix
63 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 ];
|
|
};
|
|
}
|