lol

python310Packages.httpcore: 0.14.7 -> 0.15.0

authored by

Fabian Affolter and committed by
Jonathan Ringer
d028f1ee af4aa2f2

+25 -19
+25 -19
pkgs/development/python-modules/httpcore/default.nix
··· 1 1 { lib 2 - , buildPythonPackage 3 - , pythonOlder 4 - , fetchFromGitHub 5 2 , anyio 3 + , buildPythonPackage 6 4 , certifi 5 + , fetchFromGitHub 7 6 , h11 8 7 , h2 9 8 , pproxy 10 9 , pytest-asyncio 10 + , pytest-httpbin 11 + , pytest-trio 11 12 , pytestCheckHook 12 - , pytest-cov 13 - , pytest-httpbin 13 + , pythonOlder 14 14 , sniffio 15 15 , socksio 16 - , trio 17 - , trustme 18 - , uvicorn 19 16 }: 20 17 21 18 buildPythonPackage rec { 22 19 pname = "httpcore"; 23 - version = "0.14.7"; 24 - disabled = pythonOlder "3.6"; 20 + version = "0.15.0"; 21 + format = "setuptools"; 22 + 23 + disabled = pythonOlder "3.7"; 25 24 26 25 src = fetchFromGitHub { 27 26 owner = "encode"; 28 27 repo = pname; 29 28 rev = version; 30 - sha256 = "sha256-h+3MfP1p/ifN0mF/xxrOKPTjD4Q7WzRh94YO4DYSuXE="; 29 + hash = "sha256-FF3Yzac9nkVcA5bHVOz2ymvOelSfJ0K6oU8UWpBDcmo="; 31 30 }; 32 31 33 32 postPatch = '' ··· 43 42 ]; 44 43 45 44 passthru.optional-dependencies = { 46 - http2 = [ h2 ]; 47 - socks = [ socksio ]; 45 + http2 = [ 46 + h2 47 + ]; 48 + socks = [ 49 + socksio 50 + ]; 48 51 }; 49 52 50 53 checkInputs = [ 51 54 pproxy 52 55 pytest-asyncio 53 - pytestCheckHook 54 - pytest-cov 55 56 pytest-httpbin 56 - trio 57 - trustme 58 - uvicorn 57 + pytest-trio 58 + pytestCheckHook 59 59 ] ++ passthru.optional-dependencies.http2 60 60 ++ passthru.optional-dependencies.socks; 61 61 62 - pythonImportsCheck = [ "httpcore" ]; 62 + pythonImportsCheck = [ 63 + "httpcore" 64 + ]; 65 + 66 + pytestFlagsArray = [ 67 + "--asyncio-mode=strict" 68 + ]; 63 69 64 70 meta = with lib; { 65 71 description = "A minimal low-level HTTP client";