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:
parent
1f5baa4bf8
commit
2367c4a1e0
2 changed files with 16 additions and 13 deletions
|
@ -2,7 +2,6 @@
|
|||
, aiohttp
|
||||
, async_generator
|
||||
, buildPythonPackage
|
||||
, doCheck ? true
|
||||
, fetchFromGitHub
|
||||
, httpx
|
||||
, pytest
|
||||
|
@ -13,13 +12,13 @@
|
|||
|
||||
buildPythonPackage rec {
|
||||
pname = "pytest-sanic";
|
||||
version = "1.7.0";
|
||||
version = "1.7.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "yunstanford";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "1zpgnw1lqbll59chv4hgcn31mdql1nv4gw9crbihky3ly3d3ncqi";
|
||||
sha256 = "sha256-OtyulpSHUWERtcIRT5j3YtHciIxFiIFYKqtlEd1NSFw=";
|
||||
};
|
||||
|
||||
buildInputs = [ pytest ];
|
||||
|
@ -37,7 +36,20 @@ buildPythonPackage rec {
|
|||
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" ];
|
||||
|
||||
|
@ -46,9 +58,5 @@ 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";
|
||||
};
|
||||
}
|
||||
|
|
|
@ -7392,11 +7392,6 @@ 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;
|
||||
});
|
||||
# Don't pass any `sanic` to avoid dependency loops. `sanic-testing`
|
||||
# has special logic to disable tests when this is the case.
|
||||
sanic-testing = self.sanic-testing.override { sanic = null; };
|
||||
|
|
Loading…
Reference in a new issue