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