mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-25 01:50:40 +00:00
python3Packages.{httpcore2,httpx2}: 2.5.0 -> 2.9.1 (#545246)
This commit is contained in:
@@ -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 = ''
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user