git.iko.soy/typeable/nixpkgs
on master help sign in
python3Packages.pytest-sanic: mark as broken with sanic >= 21.3.0

pytest-sanic is incompatible with the current version of Sanic, see sanic-org/sanic#2095 and yunstanford/pytest-sanic#50. While it is broken, we also need it to run Sanic's tests (for which case it works just fine).

commit5b971598f0a928185d0d9b4f3bc4ffe024a62fcb authorAluísio Augusto Silva Gonçalves <aluisio@aasg.name> dateTue 27 Apr 2021, 10:34 (6 years ago) parentdd829d2
2 files changed+12
pkgs/development/python-modules/pytest-sanic/default.nix+4 pkgs/top-level/python-packages.nix+8
pkgs/development/python-modules/pytest-sanic/default.nix+4
@@ -46,5 +46,9 @@ buildPythonPackage rec {
4646 homepage = "https://github.com/yunstanford/pytest-sanic/";
4747 license = licenses.asl20;
4848 maintainers = [ maintainers.costrouc ];
49+ # pytest-sanic is incompatible with Sanic 21.3, see
50+ # https://github.com/sanic-org/sanic/issues/2095 and
51+ # https://github.com/yunstanford/pytest-sanic/issues/50.
52+ broken = lib.versionAtLeast sanic.version "21.3.0";
4953 };
5054}
pkgs/top-level/python-packages.nix+8
@@ -7195,6 +7195,14 @@ in {
71957195
71967196 samsungtvws = callPackage ../development/python-modules/samsungtvws { };
71977197
7198+ sanic = callPackage ../development/python-modules/sanic {
7199+ # pytest-sanic is doing ok for the sole purpose of testing Sanic.
7200+ pytest-sanic = self.pytest-sanic.overridePythonAttrs (oldAttrs: {
7201+ doCheck = false;
7202+ meta.broken = false;
7203+ });
7204+ };
7205+
71987206 sanic-auth = callPackage ../development/python-modules/sanic-auth { };
71997207
72007208 sanic = callPackage ../development/python-modules/sanic { };