diff options
Diffstat (limited to 'pkgs/development/python-modules/httpcore/default.nix')
-rw-r--r-- | pkgs/development/python-modules/httpcore/default.nix | 65 |
1 files changed, 28 insertions, 37 deletions
diff --git a/pkgs/development/python-modules/httpcore/default.nix b/pkgs/development/python-modules/httpcore/default.nix index df9ec754352ef..b1d64e6526be4 100644 --- a/pkgs/development/python-modules/httpcore/default.nix +++ b/pkgs/development/python-modules/httpcore/default.nix @@ -1,24 +1,25 @@ -{ 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 +{ + 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 { @@ -46,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 = [ @@ -68,9 +61,7 @@ buildPythonPackage rec { pytestCheckHook ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies); - pythonImportsCheck = [ - "httpcore" - ]; + pythonImportsCheck = [ "httpcore" ]; __darwinAllowLocalNetworking = true; @@ -80,7 +71,7 @@ buildPythonPackage rec { 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 ]; |