diff options
Diffstat (limited to 'pkgs/development/python-modules/httpcore/default.nix')
-rw-r--r-- | pkgs/development/python-modules/httpcore/default.nix | 70 |
1 files changed, 31 insertions, 39 deletions
diff --git a/pkgs/development/python-modules/httpcore/default.nix b/pkgs/development/python-modules/httpcore/default.nix index 212db973e9e0a..b1d64e6526be4 100644 --- a/pkgs/development/python-modules/httpcore/default.nix +++ b/pkgs/development/python-modules/httpcore/default.nix @@ -1,28 +1,30 @@ -{ lib -, anyio -, buildPythonPackage -, certifi -, fetchFromGitHub -, hatchling -, hatch-fancy-pypi-readme -, h11 -, h2 -, pproxy -, pytest-asyncio -, pytest-httpbin -, pytest-trio -, pytestCheckHook -, pythonOlder -, socksio -, trio -# for passthru.tests -, httpx -, httpx-socks +{ + lib, + anyio, + buildPythonPackage, + certifi, + fetchFromGitHub, + hatchling, + hatch-fancy-pypi-readme, + h11, + h2, + pproxy, + pytest-asyncio, + pytest-httpbin, + pytest-trio, + pytestCheckHook, + pythonOlder, + socksio, + trio, + # for passthru.tests + httpx, + httpx-socks, + respx, }: buildPythonPackage rec { pname = "httpcore"; - version = "1.0.4"; + version = "1.0.5"; pyproject = true; disabled = pythonOlder "3.8"; @@ -31,7 +33,7 @@ buildPythonPackage rec { owner = "encode"; repo = "httpcore"; rev = "refs/tags/${version}"; - hash = "sha256-DK5avYEtQcTFogpdEjw0NB4qkzDm5cZKPjAE8MC6Sng="; + hash = "sha256-05jYLrBiPRg1qQEz8mRvYJKHFsfneh7z9yHIXuYYa5o="; }; nativeBuildInputs = [ @@ -45,18 +47,10 @@ buildPythonPackage rec { ]; passthru.optional-dependencies = { - asyncio = [ - anyio - ]; - http2 = [ - h2 - ]; - socks = [ - socksio - ]; - trio = [ - trio - ]; + asyncio = [ anyio ]; + http2 = [ h2 ]; + socks = [ socksio ]; + trio = [ trio ]; }; nativeCheckInputs = [ @@ -67,19 +61,17 @@ buildPythonPackage rec { pytestCheckHook ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies); - pythonImportsCheck = [ - "httpcore" - ]; + pythonImportsCheck = [ "httpcore" ]; __darwinAllowLocalNetworking = true; passthru.tests = { - inherit httpx httpx-socks; + inherit httpx httpx-socks respx; }; meta = with lib; { changelog = "https://github.com/encode/httpcore/blob/${version}/CHANGELOG.md"; - description = "A minimal low-level HTTP client"; + description = "Minimal low-level HTTP client"; homepage = "https://github.com/encode/httpcore"; license = licenses.bsd3; maintainers = with maintainers; [ ris ]; |