python3.pkgs.sanic: fix tests running on one CPU

This commit is contained in:
Theodore Ni 2023-08-16 21:44:21 -07:00
parent af13ed4483
commit 532347744e
No known key found for this signature in database
GPG Key ID: 48B67583BDDD4474

View File

@ -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 = [