summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2021-12-01 00:34:06 +0100
committerJonathan Ringer <jonringer117@gmail.com>2021-11-30 18:53:01 -0800
commitfed6ea42930c1efaad440db91e36cc207bb4e634 (patch)
tree7aa077c008810c3ac6de2d49507927baf28b770e
parentpython3Packages.doc8: fix build and enable tests (diff)
downloadnixpkgs-fed6ea42930c1efaad440db91e36cc207bb4e634.tar.gz
python3Packages.sanic: disable redirect tests
-rw-r--r--pkgs/development/python-modules/sanic/default.nix12
1 files changed, 11 insertions, 1 deletions
diff --git a/pkgs/development/python-modules/sanic/default.nix b/pkgs/development/python-modules/sanic/default.nix
index 62c2bd36944c..2fab2a3df889 100644
--- a/pkgs/development/python-modules/sanic/default.nix
+++ b/pkgs/development/python-modules/sanic/default.nix
@@ -12,6 +12,7 @@
, pytest-benchmark
, pytest-sugar
, pytestCheckHook
+, pythonOlder
, sanic-routing
, sanic-testing
, ujson
@@ -23,6 +24,9 @@
buildPythonPackage rec {
pname = "sanic";
version = "21.9.3";
+ format = "setuptools";
+
+ disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "sanic-org";
@@ -85,6 +89,10 @@ buildPythonPackage rec {
"test_auto_reload"
"test_no_exceptions_when_cancel_pending_request"
"test_ipv6_address_is_not_wrapped"
+ # Failure of the redirect tests seems to be related to httpx>0.20.0
+ "test_redirect"
+ "test_chained_redirect"
+ "test_unix_connection"
# These appear to be very sensitive to output of commands
"test_access_logs"
"test_auto_reload"
@@ -99,7 +107,9 @@ buildPythonPackage rec {
# for the same local port
__darwinAllowLocalNetworking = true;
- pythonImportsCheck = [ "sanic" ];
+ pythonImportsCheck = [
+ "sanic"
+ ];
meta = with lib; {
description = "Web server and web framework";