Files
nixpkgs/pkgs/development/python-modules/httpx-ws/default.nix
T
Martin Weinelt 25a1fdd03a python3Packages.httpx-ws: 0.7.2 -> 0.8.2
https://github.com/frankie567/httpx-ws/releases/tag/v0.8.2

This commit was automatically generated using update-python-libraries.
2026-02-01 17:19:17 +01:00

69 lines
1.3 KiB
Nix

{
lib,
anyio,
buildPythonPackage,
fetchFromGitHub,
hatchling,
httpcore,
httpx,
pytestCheckHook,
pytest-cov-stub,
starlette,
trio,
uvicorn,
wsproto,
}:
buildPythonPackage rec {
pname = "httpx-ws";
version = "0.8.2";
pyproject = true;
src = fetchFromGitHub {
owner = "frankie567";
repo = "httpx-ws";
tag = "v${version}";
hash = "sha256-3gSXUpHs1tF8FJ7Jz174VBoRCrepYcpYU1FZaNMpZqg=";
};
# we don't need to use the hatch-regex-commit plugin
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail 'source = "regex_commit"' "" \
--replace-fail 'commit_extra_args = ["-e"]' "" \
--replace-fail '"hatch-regex-commit"' ""
'';
build-system = [ hatchling ];
dependencies = [
anyio
httpcore
httpx
wsproto
];
nativeCheckInputs = [
pytestCheckHook
pytest-cov-stub
starlette
trio
uvicorn
];
pythonImportsCheck = [ "httpx_ws" ];
disabledTestPaths = [
# hang
"tests/test_api.py"
];
meta = {
description = "WebSocket support for HTTPX";
homepage = "https://github.com/frankie567/httpx-ws";
changelog = "https://github.com/frankie567/httpx-ws/releases/tag/${src.tag}";
license = lib.licenses.mit;
maintainers = [ ];
};
}