python310Packages.httpx: 0.22.0 -> 0.23.0

This commit is contained in:
Fabian Affolter 2022-06-03 01:32:32 +02:00 committed by Jonathan Ringer
parent d028f1ee85
commit 99ecb8ded5
No known key found for this signature in database
GPG key ID: 5C841D3CFDFEC4E0

View file

@ -1,67 +1,74 @@
{ lib { lib
, async_generator
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, certifi
, charset-normalizer
, httpcore
, rfc3986
, sniffio
, h2
, socksio
, isPyPy
, brotli , brotli
, brotlicffi , brotlicffi
, buildPythonPackage
, certifi
, chardet
, click , click
, rich , fetchFromGitHub
, h2
, httpcore
, isPyPy
, pygments , pygments
, python , python
, pythonOlder
, rfc3986
, rich
, sniffio
, socksio
, pytestCheckHook , pytestCheckHook
, pytest-asyncio , pytest-asyncio
, pytest-trio , pytest-trio
, typing-extensions
, trustme , trustme
, uvicorn , uvicorn
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "httpx"; pname = "httpx";
version = "0.22.0"; version = "0.23.0";
format = "setuptools"; format = "setuptools";
disabled = pythonOlder "3.6"; disabled = pythonOlder "3.7";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "encode"; owner = "encode";
repo = pname; repo = pname;
rev = version; rev = version;
sha256 = "sha256-hQmQodGpVG23IZSsWV7rB1iB6QAudDao/8YshIgpmas="; hash = "sha256-s11Yeizm3y3w5D6ACQ2wp/KJ0+1ALY/R71IlTP2pMC4=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
certifi certifi
charset-normalizer
httpcore httpcore
rfc3986 rfc3986
sniffio sniffio
] ++ lib.optionals (pythonOlder "3.7") [
async_generator
]; ];
passthru.optional-dependencies = { passthru.optional-dependencies = {
http2 = [ h2 ]; http2 = [
socks = [ socksio ]; h2
brotli = if isPyPy then [ brotlicffi ] else [ brotli ]; ];
cli = [ click rich pygments ]; socks = [
socksio
];
brotli = if isPyPy then [
brotlicffi
] else [
brotli
];
cli = [
click
rich
pygments
];
}; };
checkInputs = [ checkInputs = [
chardet
pytestCheckHook pytestCheckHook
pytest-asyncio pytest-asyncio
pytest-trio pytest-trio
trustme trustme
typing-extensions
uvicorn uvicorn
] ++ passthru.optional-dependencies.http2 ] ++ passthru.optional-dependencies.http2
++ passthru.optional-dependencies.brotli ++ passthru.optional-dependencies.brotli
@ -88,9 +95,6 @@ buildPythonPackage rec {
# httpcore.ConnectError: [Errno -2] Name or service not known # httpcore.ConnectError: [Errno -2] Name or service not known
"test_async_proxy_close" "test_async_proxy_close"
"test_sync_proxy_close" "test_sync_proxy_close"
# sensitive to charset_normalizer output
"iso-8859-1"
"test_response_no_charset_with_iso_8859_1_content"
]; ];
disabledTestPaths = [ disabledTestPaths = [