silx: 2.1.1 -> 2.1.2 (#361612)
[NixPkgs.git] / pkgs / development / python-modules / httpx-ws / default.nix
blob6150c2d09b5481450134d1b01aec69a410340c67
2   lib,
3   anyio,
4   buildPythonPackage,
5   fetchFromGitHub,
6   hatchling,
7   httpcore,
8   httpx,
9   pytestCheckHook,
10   pythonOlder,
11   starlette,
12   trio,
13   uvicorn,
14   wsproto,
17 buildPythonPackage rec {
18   pname = "httpx-ws";
19   version = "0.6.2";
20   pyproject = true;
22   disabled = pythonOlder "3.9";
24   src = fetchFromGitHub {
25     owner = "frankie567";
26     repo = "httpx-ws";
27     rev = "refs/tags/v${version}";
28     hash = "sha256-VsIYOGNEdX4rxjEa01M77arA3ddJS3cPFxXlf13QTuE=";
29   };
31   # we don't need to use the hatch-regex-commit plugin
32   postPatch = ''
33     substituteInPlace pyproject.toml \
34       --replace-fail 'source = "regex_commit"' "" \
35       --replace-fail 'commit_extra_args = ["-e"]' "" \
36       --replace-fail '"hatch-regex-commit"' "" \
37       --replace-fail 'addopts = "--cov=httpx_ws/ --cov-report=term-missing"' ""
38   '';
40   build-system = [ hatchling ];
42   dependencies = [
43     anyio
44     httpcore
45     httpx
46     wsproto
47   ];
49   nativeCheckInputs = [
50     pytestCheckHook
51     starlette
52     trio
53     uvicorn
54   ];
56   pythonImportsCheck = [ "httpx_ws" ];
58   disabledTestPaths = [
59     # hang
60     "tests/test_api.py"
61   ];
63   meta = with lib; {
64     description = "WebSocket support for HTTPX";
65     homepage = "https://github.com/frankie567/httpx-ws";
66     changelog = "https://github.com/frankie567/httpx-ws/releases/tag/v${version}";
67     license = licenses.mit;
68     maintainers = [ ];
69   };