From 532347744e271daacf9c461a98d4f0686d839261 Mon Sep 17 00:00:00 2001 From: Theodore Ni <3806110+tjni@users.noreply.github.com> Date: Wed, 16 Aug 2023 21:44:21 -0700 Subject: [PATCH] python3.pkgs.sanic: fix tests running on one CPU --- pkgs/development/python-modules/sanic/default.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/pkgs/development/python-modules/sanic/default.nix b/pkgs/development/python-modules/sanic/default.nix index 0ca77392079e..b27b75e91b22 100644 --- a/pkgs/development/python-modules/sanic/default.nix +++ b/pkgs/development/python-modules/sanic/default.nix @@ -2,9 +2,11 @@ , stdenv , buildPythonPackage , fetchFromGitHub +, fetchpatch # build-system , setuptools +, wheel # propagates , aiofiles @@ -47,8 +49,18 @@ buildPythonPackage rec { hash = "sha256-Ffw92mlYNV+ikb6299uw24EI1XPpl3Ju2st1Yt/YHKw="; }; + patches = [ + # https://github.com/sanic-org/sanic/pull/2801 + (fetchpatch { + name = "fix-test-one-cpu.patch"; + url = "https://github.com/sanic-org/sanic/commit/a1df2a6de1c9c88a85d166e7e2636d26f7925852.patch"; + hash = "sha256-vljGuoP/Q9HrP+/AOoI1iUpbDQ4/1Pn7AURP1dncI00="; + }) + ]; + nativeBuildInputs = [ setuptools + wheel ]; propagatedBuildInputs = [