From 99ecb8ded55ac57929d4e8b462bd3a81d81bd2a8 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 3 Jun 2022 01:32:32 +0200 Subject: [PATCH] python310Packages.httpx: 0.22.0 -> 0.23.0 --- .../python-modules/httpx/default.nix | 60 ++++++++++--------- 1 file changed, 32 insertions(+), 28 deletions(-) diff --git a/pkgs/development/python-modules/httpx/default.nix b/pkgs/development/python-modules/httpx/default.nix index 0070d5d04eff..ab5a6820529e 100644 --- a/pkgs/development/python-modules/httpx/default.nix +++ b/pkgs/development/python-modules/httpx/default.nix @@ -1,67 +1,74 @@ { lib -, async_generator -, buildPythonPackage -, pythonOlder -, fetchFromGitHub -, certifi -, charset-normalizer -, httpcore -, rfc3986 -, sniffio -, h2 -, socksio -, isPyPy , brotli , brotlicffi +, buildPythonPackage +, certifi +, chardet , click -, rich +, fetchFromGitHub +, h2 +, httpcore +, isPyPy , pygments , python +, pythonOlder +, rfc3986 +, rich +, sniffio +, socksio , pytestCheckHook , pytest-asyncio , pytest-trio -, typing-extensions , trustme , uvicorn }: buildPythonPackage rec { pname = "httpx"; - version = "0.22.0"; + version = "0.23.0"; format = "setuptools"; - disabled = pythonOlder "3.6"; + disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "encode"; repo = pname; rev = version; - sha256 = "sha256-hQmQodGpVG23IZSsWV7rB1iB6QAudDao/8YshIgpmas="; + hash = "sha256-s11Yeizm3y3w5D6ACQ2wp/KJ0+1ALY/R71IlTP2pMC4="; }; propagatedBuildInputs = [ certifi - charset-normalizer httpcore rfc3986 sniffio - ] ++ lib.optionals (pythonOlder "3.7") [ - async_generator ]; passthru.optional-dependencies = { - http2 = [ h2 ]; - socks = [ socksio ]; - brotli = if isPyPy then [ brotlicffi ] else [ brotli ]; - cli = [ click rich pygments ]; + http2 = [ + h2 + ]; + socks = [ + socksio + ]; + brotli = if isPyPy then [ + brotlicffi + ] else [ + brotli + ]; + cli = [ + click + rich + pygments + ]; }; checkInputs = [ + chardet pytestCheckHook pytest-asyncio pytest-trio trustme - typing-extensions uvicorn ] ++ passthru.optional-dependencies.http2 ++ passthru.optional-dependencies.brotli @@ -88,9 +95,6 @@ buildPythonPackage rec { # httpcore.ConnectError: [Errno -2] Name or service not known "test_async_proxy_close" "test_sync_proxy_close" - # sensitive to charset_normalizer output - "iso-8859-1" - "test_response_no_charset_with_iso_8859_1_content" ]; disabledTestPaths = [