Something went wrong. Try again.
lol
Something went wrong. Try again.
1.3 kB · 68 lines
Nix
at master
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869{ 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 = [ ]; };}