Unverified Commit f9298006 authored by dotlambda's avatar dotlambda Committed by GitHub
Browse files

python3Packages.aiohttp-sse: backport patch for pytest-asyncio 1.0 compat (#450703)

parents 6e40a993 41511c92
Loading
Loading
Loading
Loading
+10 −3
Original line number Diff line number Diff line
@@ -2,9 +2,9 @@
  aiohttp,
  buildPythonPackage,
  fetchFromGitHub,
  fetchpatch,
  lib,
  pytest-aiohttp,
  pytest-asyncio_0,
  pytest-cov-stub,
  pytestCheckHook,
  setuptools,
@@ -22,6 +22,14 @@ buildPythonPackage rec {
    hash = "sha256-iCjWuECUQukCtlQPjztEwawqSzd3LvvWRGXnhZem22w=";
  };

  patches = [
    (fetchpatch {
      name = "pytest-asyncio-compat.patch";
      url = "https://github.com/aio-libs/aiohttp-sse/commit/22c8041f5f737f76bdba2f2fded58abacf04c913.patch";
      hash = "sha256-CZjXgDKbm3XmS0tn3MGZMnZ84ZLt4o6v9boAYXYa6A4=";
    })
  ];

  build-system = [ setuptools ];

  dependencies = [
@@ -31,8 +39,7 @@ buildPythonPackage rec {
  pythonImportsCheck = [ "aiohttp_sse" ];

  nativeCheckInputs = [
    (pytest-aiohttp.override { pytest-asyncio = pytest-asyncio_0; })
    pytest-asyncio_0
    pytest-aiohttp
    pytest-cov-stub
    pytestCheckHook
  ];