python3Packages.pytest-sanic: 1.7.0 -> 1.7.1

https://github.com/yunstanford/pytest-sanic/releases/tag/v1.7.1
This commit is contained in:
Robert Schütz 2021-05-23 15:15:54 +02:00
parent 1f5baa4bf8
commit 2367c4a1e0
2 changed files with 16 additions and 13 deletions

View file

@ -2,7 +2,6 @@
, aiohttp , aiohttp
, async_generator , async_generator
, buildPythonPackage , buildPythonPackage
, doCheck ? true
, fetchFromGitHub , fetchFromGitHub
, httpx , httpx
, pytest , pytest
@ -13,13 +12,13 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "pytest-sanic"; pname = "pytest-sanic";
version = "1.7.0"; version = "1.7.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "yunstanford"; owner = "yunstanford";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "1zpgnw1lqbll59chv4hgcn31mdql1nv4gw9crbihky3ly3d3ncqi"; sha256 = "sha256-OtyulpSHUWERtcIRT5j3YtHciIxFiIFYKqtlEd1NSFw=";
}; };
buildInputs = [ pytest ]; buildInputs = [ pytest ];
@ -37,7 +36,20 @@ buildPythonPackage rec {
pytestCheckHook pytestCheckHook
]; ];
inherit doCheck; disabledTests = [
# https://github.com/yunstanford/pytest-sanic/issues/51
"test_fixture_sanic_client_get"
"test_fixture_sanic_client_post"
"test_fixture_sanic_client_put"
"test_fixture_sanic_client_delete"
"test_fixture_sanic_client_patch"
"test_fixture_sanic_client_options"
"test_fixture_sanic_client_head"
"test_fixture_sanic_client_close"
"test_fixture_sanic_client_passing_headers"
"test_fixture_sanic_client_context_manager"
"test_fixture_test_client_context_manager"
];
pythonImportsCheck = [ "pytest_sanic" ]; pythonImportsCheck = [ "pytest_sanic" ];
@ -46,9 +58,5 @@ buildPythonPackage rec {
homepage = "https://github.com/yunstanford/pytest-sanic/"; homepage = "https://github.com/yunstanford/pytest-sanic/";
license = licenses.asl20; license = licenses.asl20;
maintainers = [ maintainers.costrouc ]; 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

@ -7392,11 +7392,6 @@ in {
samsungtvws = callPackage ../development/python-modules/samsungtvws { }; samsungtvws = callPackage ../development/python-modules/samsungtvws { };
sanic = callPackage ../development/python-modules/sanic { 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;
});
# Don't pass any `sanic` to avoid dependency loops. `sanic-testing` # Don't pass any `sanic` to avoid dependency loops. `sanic-testing`
# has special logic to disable tests when this is the case. # has special logic to disable tests when this is the case.
sanic-testing = self.sanic-testing.override { sanic = null; }; sanic-testing = self.sanic-testing.override { sanic = null; };