nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at r-updates 68 lines 1.3 kB view raw
1{ 2 lib, 3 anyio, 4 buildPythonPackage, 5 fetchFromGitHub, 6 hatchling, 7 httpcore, 8 httpx, 9 pytestCheckHook, 10 pytest-cov-stub, 11 starlette, 12 trio, 13 uvicorn, 14 wsproto, 15}: 16 17buildPythonPackage rec { 18 pname = "httpx-ws"; 19 version = "0.8.2"; 20 pyproject = true; 21 22 src = fetchFromGitHub { 23 owner = "frankie567"; 24 repo = "httpx-ws"; 25 tag = "v${version}"; 26 hash = "sha256-3gSXUpHs1tF8FJ7Jz174VBoRCrepYcpYU1FZaNMpZqg="; 27 }; 28 29 # we don't need to use the hatch-regex-commit plugin 30 postPatch = '' 31 substituteInPlace pyproject.toml \ 32 --replace-fail 'source = "regex_commit"' "" \ 33 --replace-fail 'commit_extra_args = ["-e"]' "" \ 34 --replace-fail '"hatch-regex-commit"' "" 35 ''; 36 37 build-system = [ hatchling ]; 38 39 dependencies = [ 40 anyio 41 httpcore 42 httpx 43 wsproto 44 ]; 45 46 nativeCheckInputs = [ 47 pytestCheckHook 48 pytest-cov-stub 49 starlette 50 trio 51 uvicorn 52 ]; 53 54 pythonImportsCheck = [ "httpx_ws" ]; 55 56 disabledTestPaths = [ 57 # hang 58 "tests/test_api.py" 59 ]; 60 61 meta = { 62 description = "WebSocket support for HTTPX"; 63 homepage = "https://github.com/frankie567/httpx-ws"; 64 changelog = "https://github.com/frankie567/httpx-ws/releases/tag/${src.tag}"; 65 license = lib.licenses.mit; 66 maintainers = [ ]; 67 }; 68}