Commit 0fdd9ce1 authored by Fabian Affolter's avatar Fabian Affolter
Browse files

python312Packages.httpx-ws: refactor

parent 34a00f3d
Loading
Loading
Loading
Loading
+8 −6
Original line number Diff line number Diff line
{
  lib,
  anyio,
  buildPythonPackage,
  fetchFromGitHub,
  pythonOlder,
  hatchling,
  anyio,
  httpcore,
  httpx,
  wsproto,
  pytestCheckHook,
  pythonOlder,
  starlette,
  trio,
  uvicorn,
  wsproto,
}:

buildPythonPackage rec {
@@ -19,7 +19,7 @@ buildPythonPackage rec {
  version = "0.6.2";
  pyproject = true;

  disabled = pythonOlder "3.8";
  disabled = pythonOlder "3.9";

  src = fetchFromGitHub {
    owner = "frankie567";
@@ -46,8 +46,6 @@ buildPythonPackage rec {
    wsproto
  ];

  pythonImportsCheck = [ "httpx_ws" ];

  nativeCheckInputs = [
    pytestCheckHook
    starlette
@@ -55,6 +53,8 @@ buildPythonPackage rec {
    uvicorn
  ];

  pythonImportsCheck = [ "httpx_ws" ];

  disabledTestPaths = [
    # hang
    "tests/test_api.py"
@@ -63,6 +63,8 @@ buildPythonPackage rec {
  meta = with lib; {
    description = "WebSocket support for HTTPX";
    homepage = "https://github.com/frankie567/httpx-ws";
    changelog = "https://github.com/frankie567/httpx-ws/releases/tag/v${version}";
    license = licenses.mit;
    maintainers = [ ];
  };
}