From 2367c4a1e0ebaec16df3742625ce3fc9402c4ba4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sun, 23 May 2021 15:15:54 +0200 Subject: [PATCH] python3Packages.pytest-sanic: 1.7.0 -> 1.7.1 https://github.com/yunstanford/pytest-sanic/releases/tag/v1.7.1 --- .../python-modules/pytest-sanic/default.nix | 24 ++++++++++++------- pkgs/top-level/python-packages.nix | 5 ---- 2 files changed, 16 insertions(+), 13 deletions(-) diff --git a/pkgs/development/python-modules/pytest-sanic/default.nix b/pkgs/development/python-modules/pytest-sanic/default.nix index ae1c56f95b7..81e189c22c5 100644 --- a/pkgs/development/python-modules/pytest-sanic/default.nix +++ b/pkgs/development/python-modules/pytest-sanic/default.nix @@ -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"; }; } diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 2661bef8ed5..7824fbb7f19 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -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; };