python3Packages.{httpcore2,httpx2}: 2.5.0 -> 2.9.1 (#545246)

This commit is contained in:
Martin Weinelt
2026-07-24 14:23:10 +00:00
committed by GitHub
2 changed files with 10 additions and 5 deletions

View File

@@ -29,14 +29,14 @@
buildPythonPackage (finalAttrs: {
pname = "httpcore2";
version = "2.5.0";
version = "2.9.1";
pyproject = true;
src = fetchFromGitHub {
owner = "pydantic";
repo = "httpx2";
tag = "v${finalAttrs.version}";
hash = "sha256-vIWAUjHPyafbeeUc2OvGpkiOoTj1fTniRnQiKSdkm6s=";
hash = "sha256-3kghDQMYksF9a4sFGajzNfGPOjdX1OiMwv7rH/fbmM0=";
};
postPatch = ''

View File

@@ -24,14 +24,17 @@
pygments,
rich,
socksio,
wsproto,
zstandard,
# tests
chardet,
pytestCheckHook,
pytest-trio,
starlette,
trustme,
uvicorn,
websockets,
# reverse deps
httpx2,
@@ -39,14 +42,14 @@
buildPythonPackage (finalAttrs: {
pname = "httpx2";
version = "2.5.0";
version = "2.9.1";
pyproject = true;
src = fetchFromGitHub {
owner = "pydantic";
repo = "httpx2";
tag = "v${finalAttrs.version}";
hash = "sha256-vIWAUjHPyafbeeUc2OvGpkiOoTj1fTniRnQiKSdkm6s=";
hash = "sha256-3kghDQMYksF9a4sFGajzNfGPOjdX1OiMwv7rH/fbmM0=";
};
postPatch = ''
@@ -75,6 +78,7 @@ buildPythonPackage (finalAttrs: {
];
http2 = [ h2 ];
socks = [ socksio ];
ws = [ wsproto ];
zstd = lib.optionals (pythonOlder "3.14") [ zstandard ];
};
@@ -89,10 +93,11 @@ buildPythonPackage (finalAttrs: {
nativeCheckInputs = [
chardet
pytestCheckHook
# pytest-httpbin
pytest-trio
(starlette.overridePythonAttrs { doCheck = false; })
trustme
uvicorn
websockets
]
++ lib.concatAttrValues finalAttrs.passthru.optional-dependencies;