diff options
author | Robert Schütz <nix@dotlambda.de> | 2022-05-05 06:01:23 +0000 |
---|---|---|
committer | Robert Schütz <github@dotlambda.de> | 2022-05-09 00:12:37 -0700 |
commit | cbfb0da7a26bc6ce6e63b262ce5f7949682478cc (patch) | |
tree | 45a71b8aeaad6982a6be5ffa5715a7a380397800 | |
parent | ee9b1bfa095c8b12e3e0bec0a27ec8ffb8e67d10 (diff) | |
download | nixpkgs-cbfb0da7a26bc6ce6e63b262ce5f7949682478cc.tar nixpkgs-cbfb0da7a26bc6ce6e63b262ce5f7949682478cc.tar.gz nixpkgs-cbfb0da7a26bc6ce6e63b262ce5f7949682478cc.tar.bz2 nixpkgs-cbfb0da7a26bc6ce6e63b262ce5f7949682478cc.tar.lz nixpkgs-cbfb0da7a26bc6ce6e63b262ce5f7949682478cc.tar.xz nixpkgs-cbfb0da7a26bc6ce6e63b262ce5f7949682478cc.tar.zst nixpkgs-cbfb0da7a26bc6ce6e63b262ce5f7949682478cc.zip |
python3Packages.httpcore: specify extras-require
-rw-r--r-- | pkgs/development/python-modules/httpcore/default.nix | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/pkgs/development/python-modules/httpcore/default.nix b/pkgs/development/python-modules/httpcore/default.nix index 7f028c478fc..5b8d84ec308 100644 --- a/pkgs/development/python-modules/httpcore/default.nix +++ b/pkgs/development/python-modules/httpcore/default.nix @@ -39,11 +39,14 @@ buildPythonPackage rec { anyio certifi h11 - h2 sniffio - socksio ]; + passthru.extras-require = { + http2 = [ h2 ]; + socks = [ socksio ]; + }; + checkInputs = [ pproxy pytest-asyncio @@ -53,7 +56,8 @@ buildPythonPackage rec { trio trustme uvicorn - ]; + ] ++ passthru.extras-require.http2 + ++ passthru.extras-require.socks; pythonImportsCheck = [ "httpcore" ]; |