python3Packages.httpcore: specify extras-require

This commit is contained in:
Robert Schütz
2022-05-09 00:12:37 -07:00
committed by Robert Schütz
parent ee9b1bfa09
commit cbfb0da7a2
@@ -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" ];