Commit 9ec7f4bb authored by Robert Schütz's avatar Robert Schütz
Browse files

python312Packages.daphne: fix tests with Twisted 24.7.0

parent 720fee1b
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -6,6 +6,7 @@
  buildPythonPackage,
  django,
  fetchFromGitHub,
  fetchpatch2,
  hypothesis,
  pytest-asyncio,
  pytestCheckHook,
@@ -28,6 +29,15 @@ buildPythonPackage rec {
    hash = "sha256-RAK2CaKKVmVIv1MBK+9xyADOrHq664MQOry4KaGTNCw=";
  };

  patches = [
    # https://github.com/django/daphne/pull/526
    (fetchpatch2 {
      name = "fix-tests-with-Twisted-24.7.0.patch";
      url = "https://github.com/django/daphne/commit/0370c7a0937011d5345b14d484ec171d3ae9f875.patch";
      hash = "sha256-/3d2pRcEtGvINGHRQF3RZ8IVIETSZb6rhf+ZHUFSQQo=";
    })
  ];

  postPatch = ''
    substituteInPlace setup.cfg \
      --replace-fail "pytest-runner" ""