Unverified Commit 7c854787 authored by Peder Bergebakken Sundt's avatar Peder Bergebakken Sundt Committed by GitHub
Browse files

python312Packages.ypy-websocket: disable failing test (#403461)

parents 9a47a18d 7d14fdca
Loading
Loading
Loading
Loading
+14 −9
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  pythonOlder,
  fetchFromGitHub,

  # build-system
  hatchling,

  # dependencies
  aiosqlite,
  anyio,
  y-py,

  # testing
  pytest-asyncio,
  pytestCheckHook,
  uvicorn,
@@ -16,9 +21,7 @@
buildPythonPackage rec {
  pname = "ypy-websocket";
  version = "0.12.4";
  format = "pyproject";

  disabled = pythonOlder "3.7";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "y-crdt";
@@ -27,13 +30,11 @@ buildPythonPackage rec {
    hash = "sha256-48x+MUhev9dErC003XOP3oGKd5uOghlBFgcR8Nm/0xs=";
  };

  pythonRelaxDeps = [ "aiofiles" ];
  build-system = [ hatchling ];

  nativeBuildInputs = [
    hatchling
  ];
  pythonRelaxDeps = [ "aiofiles" ];

  propagatedBuildInputs = [
  dependencies = [
    aiosqlite
    anyio
    y-py
@@ -41,6 +42,8 @@ buildPythonPackage rec {

  pythonImportsCheck = [ "ypy_websocket" ];

  __darwinAllowLocalNetworking = true;

  nativeCheckInputs = [
    pytest-asyncio
    pytestCheckHook
@@ -51,6 +54,8 @@ buildPythonPackage rec {
  disabledTestPaths = [
    # requires installing yjs Node.js module
    "tests/test_ypy_yjs.py"
    # Depends on no longer maintained ypy
    "tests/test_asgi.py"
  ];

  meta = {