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).
This commit is contained in:
Aluísio Augusto Silva Gonçalves 2021-04-27 10:34:36 -03:00
parent dd829d287a
commit 5b971598f0
No known key found for this signature in database
GPG key ID: DA6EA2FACDB1CBD2
2 changed files with 12 additions and 0 deletions

View file

@ -46,5 +46,9 @@ buildPythonPackage rec {
homepage = "https://github.com/yunstanford/pytest-sanic/";
license = licenses.asl20;
maintainers = [ maintainers.costrouc ];
# pytest-sanic is incompatible with Sanic 21.3, see
# https://github.com/sanic-org/sanic/issues/2095 and
# https://github.com/yunstanford/pytest-sanic/issues/50.
broken = lib.versionAtLeast sanic.version "21.3.0";
};
}

View file

@ -7195,6 +7195,14 @@ in {
samsungtvws = callPackage ../development/python-modules/samsungtvws { };
sanic = callPackage ../development/python-modules/sanic {
# pytest-sanic is doing ok for the sole purpose of testing Sanic.
pytest-sanic = self.pytest-sanic.overridePythonAttrs (oldAttrs: {
doCheck = false;
meta.broken = false;
});
};
sanic-auth = callPackage ../development/python-modules/sanic-auth { };
sanic = callPackage ../development/python-modules/sanic { };