git.iko.soy/typeable/nixpkgs
on master help sign in
sanic: 21.3.4 -> 21.9.1
commite339edff67c600203e1cf6346ef7c37319f8ad05 authorThiago Kenji Okada <thiagokokada@gmail.com> dateThu 4 Nov 2021, 19:56 (5 years ago) parent690c013
1 file changed+13−14
pkgs/development/python-modules/sanic/default.nix+13−14
pkgs/development/python-modules/sanic/default.nix+13−14
@@ -10,7 +10,6 @@
1010, multidict
1111, pytest-asyncio
1212, pytest-benchmark
13−, pytest-sanic
1413, pytest-sugar
1514, pytestCheckHook
1615, sanic-routing
@@ -23,28 +22,19 @@
2322
2423buildPythonPackage rec {
2524 pname = "sanic";
26− version = "21.3.4";
25+ version = "21.9.1";
2726
2827 src = fetchFromGitHub {
2928 owner = "sanic-org";
3029 repo = pname;
3130 rev = "v${version}";
32− sha256 = "0vldlic8gqcf56fqb31igycqf11syd9csk66v34w6dim54lcny2b";
31+ sha256 = "sha256-TRrJr/L8AXLAARPjhBi2FxNh+jvxxdeMN24cT1njmqY=";
3332 };
3433
35− patches = [
36− # Allow later websockets release, https://github.com/sanic-org/sanic/pull/2154
37− (fetchpatch {
38− name = "later-websockets.patch";
39− url = "https://github.com/sanic-org/sanic/commit/5fb820b5c1ce395e86a1ee11996790c65ec7bc65.patch";
40− sha256 = "1glvq23pf1sxqjnrz0w8rr7nsnyz82k1479b3rm8szfkjg9q5d1w";
41− })
42− ];
43−
4434 postPatch = ''
4535 # Loosen dependency requirements.
4636 substituteInPlace setup.py \
47− --replace '"pytest==5.2.1"' '"pytest"' \
37+ --replace '"pytest==6.2.5"' '"pytest"' \
4838 --replace '"gunicorn==20.0.4"' '"gunicorn"' \
4939 --replace '"pytest-sanic",' "" \
5040 # Patch a request headers test to allow brotli encoding
@@ -68,7 +58,6 @@ buildPythonPackage rec {
6858 gunicorn
6959 pytest-asyncio
7060 pytest-benchmark
71− pytest-sanic
7261 pytest-sugar
7362 pytestCheckHook
7463 sanic-testing
@@ -77,6 +66,11 @@ buildPythonPackage rec {
7766
7867 inherit doCheck;
7968
69+ preCheck = ''
70+ # Some tests depends on executables on PATH
71+ PATH="$out/bin:${gunicorn}/bin:$PATH"
72+ '';
73+
8074 disabledTests = [
8175 # Tests are flaky
8276 "test_keep_alive_client_timeout"
@@ -84,6 +78,11 @@ buildPythonPackage rec {
8478 "test_check_timeouts_response_timeout"
8579 "test_reloader_live"
8680 "test_zero_downtime"
81+ # Not working from 21.9.1
82+ "test_create_server_main"
83+ "test_create_server_main_convenience"
84+ "test_debug"
85+ "test_auto_reload"
8786 ];
8887
8988 __darwinAllowLocalNetworking = true;