From d028f1ee858df6d4da01cff2413d1eeb35b186ef Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 3 Jun 2022 01:27:27 +0200 Subject: [PATCH] python310Packages.httpcore: 0.14.7 -> 0.15.0 --- .../python-modules/httpcore/default.nix | 44 +++++++++++-------- 1 file changed, 25 insertions(+), 19 deletions(-) diff --git a/pkgs/development/python-modules/httpcore/default.nix b/pkgs/development/python-modules/httpcore/default.nix index d2286b6b022b..5016ece96f2f 100644 --- a/pkgs/development/python-modules/httpcore/default.nix +++ b/pkgs/development/python-modules/httpcore/default.nix @@ -1,33 +1,32 @@ { lib -, buildPythonPackage -, pythonOlder -, fetchFromGitHub , anyio +, buildPythonPackage , certifi +, fetchFromGitHub , h11 , h2 , pproxy , pytest-asyncio -, pytestCheckHook -, pytest-cov , pytest-httpbin +, pytest-trio +, pytestCheckHook +, pythonOlder , sniffio , socksio -, trio -, trustme -, uvicorn }: buildPythonPackage rec { pname = "httpcore"; - version = "0.14.7"; - disabled = pythonOlder "3.6"; + version = "0.15.0"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "encode"; repo = pname; rev = version; - sha256 = "sha256-h+3MfP1p/ifN0mF/xxrOKPTjD4Q7WzRh94YO4DYSuXE="; + hash = "sha256-FF3Yzac9nkVcA5bHVOz2ymvOelSfJ0K6oU8UWpBDcmo="; }; postPatch = '' @@ -43,23 +42,30 @@ buildPythonPackage rec { ]; passthru.optional-dependencies = { - http2 = [ h2 ]; - socks = [ socksio ]; + http2 = [ + h2 + ]; + socks = [ + socksio + ]; }; checkInputs = [ pproxy pytest-asyncio - pytestCheckHook - pytest-cov pytest-httpbin - trio - trustme - uvicorn + pytest-trio + pytestCheckHook ] ++ passthru.optional-dependencies.http2 ++ passthru.optional-dependencies.socks; - pythonImportsCheck = [ "httpcore" ]; + pythonImportsCheck = [ + "httpcore" + ]; + + pytestFlagsArray = [ + "--asyncio-mode=strict" + ]; meta = with lib; { description = "A minimal low-level HTTP client";