From f67a5c6354e4e4c11a9fa5da6222796b14f04eeb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Fri, 11 Nov 2022 20:25:59 -0800 Subject: [PATCH 01/31] python310Packages.pypck: test in asyncio auto mode --- pkgs/development/python-modules/pypck/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/pypck/default.nix b/pkgs/development/python-modules/pypck/default.nix index c1996ae402a1..13519664b52b 100644 --- a/pkgs/development/python-modules/pypck/default.nix +++ b/pkgs/development/python-modules/pypck/default.nix @@ -29,7 +29,7 @@ buildPythonPackage rec { ]; pytestFlagsArray = [ - "--asyncio-mode=legacy" + "--asyncio-mode=auto" ]; disabledTests = lib.optionals stdenv.isDarwin [ From afff895620295d3c8f4b8a84539e56894c16ccc7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Fri, 11 Nov 2022 21:50:18 -0800 Subject: [PATCH 02/31] python310Packages.dynalite-devices: test in asyncio auto mode --- pkgs/development/python-modules/dynalite-devices/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/dynalite-devices/default.nix b/pkgs/development/python-modules/dynalite-devices/default.nix index 456e0a6a628d..ed3f3ffb82ab 100644 --- a/pkgs/development/python-modules/dynalite-devices/default.nix +++ b/pkgs/development/python-modules/dynalite-devices/default.nix @@ -28,7 +28,7 @@ buildPythonPackage rec { ]; pytestFlagsArray = [ - "--asyncio-mode=legacy" + "--asyncio-mode=auto" ]; pythonImportsCheck = [ "dynalite_devices_lib" ]; From a7d24e0cc86cfa6f603d299a0e17080217192dbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Fri, 11 Nov 2022 21:56:25 -0800 Subject: [PATCH 03/31] python310Packages.pyotgw: don't set asyncio mode --- pkgs/development/python-modules/pyotgw/default.nix | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pkgs/development/python-modules/pyotgw/default.nix b/pkgs/development/python-modules/pyotgw/default.nix index ff519920ad66..c0f24aa3dc6d 100644 --- a/pkgs/development/python-modules/pyotgw/default.nix +++ b/pkgs/development/python-modules/pyotgw/default.nix @@ -30,10 +30,6 @@ buildPythonPackage rec { pytestCheckHook ]; - pytestFlagsArray = [ - "--asyncio-mode=legacy" - ]; - pythonImportsCheck = [ "pyotgw" ]; From 57b644c57d99d39c5b5f8341521405011eb3e44f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sat, 12 Nov 2022 08:06:18 -0800 Subject: [PATCH 04/31] python310Packages.discovery30303: test in asyncio auto mode --- pkgs/development/python-modules/discovery30303/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/discovery30303/default.nix b/pkgs/development/python-modules/discovery30303/default.nix index c9b09cbfe69c..6b69ecfc98cc 100644 --- a/pkgs/development/python-modules/discovery30303/default.nix +++ b/pkgs/development/python-modules/discovery30303/default.nix @@ -32,7 +32,7 @@ buildPythonPackage rec { ]; pytestFlagsArray = [ - "--asyncio-mode=legacy" + "--asyncio-mode=auto" ]; postPatch = '' From 55d680f1a4d1f88ab903592219c96c2862a50a06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sat, 12 Nov 2022 11:29:36 -0800 Subject: [PATCH 05/31] python310Packages.pywizlight: test in asyncio auto mode --- pkgs/development/python-modules/pywizlight/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/pywizlight/default.nix b/pkgs/development/python-modules/pywizlight/default.nix index 21ddb6f6097f..2ca664b88a17 100644 --- a/pkgs/development/python-modules/pywizlight/default.nix +++ b/pkgs/development/python-modules/pywizlight/default.nix @@ -31,7 +31,7 @@ buildPythonPackage rec { ]; pytestFlagsArray = [ - "--asyncio-mode=legacy" + "--asyncio-mode=auto" ]; disabledTests = [ From ab3c922488d5d10ae89ac69985d625e2f94bdef0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sat, 12 Nov 2022 11:30:36 -0800 Subject: [PATCH 06/31] python310Packages.structlog: don't set asyncio mode --- pkgs/development/python-modules/structlog/default.nix | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pkgs/development/python-modules/structlog/default.nix b/pkgs/development/python-modules/structlog/default.nix index 68d91685c9c2..a3b591db5f8e 100644 --- a/pkgs/development/python-modules/structlog/default.nix +++ b/pkgs/development/python-modules/structlog/default.nix @@ -39,10 +39,6 @@ buildPythonPackage rec { simplejson ]; - pytestFlagsArray = [ - "--asyncio-mode=legacy" - ]; - meta = with lib; { description = "Painless structural logging"; homepage = "https://github.com/hynek/structlog"; From b909b493dcb7fc54809315032ff03604925a0b73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sat, 12 Nov 2022 15:18:28 -0800 Subject: [PATCH 07/31] python310Packages.amqtt: test in asyncio auto mode --- pkgs/development/python-modules/amqtt/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/amqtt/default.nix b/pkgs/development/python-modules/amqtt/default.nix index ecf326a9a21a..6f4a5007e7c6 100644 --- a/pkgs/development/python-modules/amqtt/default.nix +++ b/pkgs/development/python-modules/amqtt/default.nix @@ -56,7 +56,7 @@ buildPythonPackage rec { ]; pytestFlagsArray = [ - "--asyncio-mode=legacy" + "--asyncio-mode=auto" ]; disabledTestPaths = [ From 7cd70a299ba8cbf8f03d0ae56d517b9caec51ca8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sat, 12 Nov 2022 15:22:16 -0800 Subject: [PATCH 08/31] python310Packages.channels: don't set asyncio mode --- pkgs/development/python-modules/channels/default.nix | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pkgs/development/python-modules/channels/default.nix b/pkgs/development/python-modules/channels/default.nix index 5bc2db228ae4..2d6f0d009169 100644 --- a/pkgs/development/python-modules/channels/default.nix +++ b/pkgs/development/python-modules/channels/default.nix @@ -41,10 +41,6 @@ buildPythonPackage rec { pytestCheckHook ] ++ passthru.optional-dependencies.daphne; - pytestFlagsArray = [ - "--asyncio-mode=legacy" - ]; - pythonImportsCheck = [ "channels" ]; From 0445d4fd04db40d6759de11d20ed8472c819fd7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sat, 12 Nov 2022 15:24:48 -0800 Subject: [PATCH 09/31] python310Packages.aioftp: don't set asyncio mode --- pkgs/development/python-modules/aioftp/default.nix | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pkgs/development/python-modules/aioftp/default.nix b/pkgs/development/python-modules/aioftp/default.nix index df7575de0484..37f8d9fa3353 100644 --- a/pkgs/development/python-modules/aioftp/default.nix +++ b/pkgs/development/python-modules/aioftp/default.nix @@ -33,10 +33,6 @@ buildPythonPackage rec { trustme ]; - pytestFlagsArray = [ - "--asyncio-mode=legacy" - ]; - disabledTests = lib.optionals stdenv.isDarwin [ # uses 127.0.0.2, which macos doesn't like "test_pasv_connection_pasv_forced_response_address" From a369a029447794809edd1a26133f36c2e77cd5b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sat, 12 Nov 2022 15:26:34 -0800 Subject: [PATCH 10/31] python310Packages.gql: test in asyncio auto mode --- pkgs/development/python-modules/gql/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/gql/default.nix b/pkgs/development/python-modules/gql/default.nix index bd41fd24ee10..dae5fb3438e0 100644 --- a/pkgs/development/python-modules/gql/default.nix +++ b/pkgs/development/python-modules/gql/default.nix @@ -80,7 +80,7 @@ buildPythonPackage rec { ''; pytestFlagsArray = [ - "--asyncio-mode=legacy" + "--asyncio-mode=auto" ]; disabledTests = [ From 49fc445b272a169ade1acd779a8a98a6c88cd9d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sat, 12 Nov 2022 15:33:11 -0800 Subject: [PATCH 11/31] python310Packages.hypercorn: 0.13.2 -> 0.14.3 https://github.com/pgjones/hypercorn/blob/0.14.3/CHANGELOG.rst --- .../python-modules/hypercorn/default.nix | 22 ++++++++----------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/pkgs/development/python-modules/hypercorn/default.nix b/pkgs/development/python-modules/hypercorn/default.nix index 35a9f8f6bb85..940c31e31882 100644 --- a/pkgs/development/python-modules/hypercorn/default.nix +++ b/pkgs/development/python-modules/hypercorn/default.nix @@ -1,6 +1,6 @@ { lib , buildPythonPackage -, fetchFromGitLab +, fetchFromGitHub , pythonOlder , typing-extensions , wsproto @@ -10,25 +10,27 @@ , mock , poetry-core , pytest-asyncio -, pytest-cov -, pytest-sugar , pytest-trio , pytestCheckHook }: buildPythonPackage rec { pname = "Hypercorn"; - version = "0.13.2"; + version = "0.14.3"; disabled = pythonOlder "3.7"; format = "pyproject"; - src = fetchFromGitLab { + src = fetchFromGitHub { owner = "pgjones"; repo = pname; rev = version; - sha256 = "sha256-fIjw5A6SvFUv8cU7xunVlPYphv+glypY4pzvHNifYLQ="; + hash = "sha256-ECREs8UwqTWUweUrwnUwpVotCII2v4Bz7ZCk3DSAd8I="; }; + postPatch = '' + sed -i "/^addopts/d" pyproject.toml + ''; + nativeBuildInputs = [ poetry-core ]; @@ -38,20 +40,14 @@ buildPythonPackage rec { checkInputs = [ pytest-asyncio - pytest-cov - pytest-sugar pytest-trio pytestCheckHook ] ++ lib.optionals (pythonOlder "3.8") [ mock ]; - pytestFlagsArray = [ - "--asyncio-mode=legacy" - ]; - pythonImportsCheck = [ "hypercorn" ]; meta = with lib; { - homepage = "https://pgjones.gitlab.io/hypercorn/"; + homepage = "https://github.com/pgjones/hypercorn"; description = "The ASGI web server inspired by Gunicorn"; license = licenses.mit; maintainers = with maintainers; [ dgliwka ]; From 36a055120d7faad3f40554780780bfa60e8e8054 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sat, 12 Nov 2022 15:42:37 -0800 Subject: [PATCH 12/31] python310Packages.jsonrpc-websocket: test in asyncio auto mode --- pkgs/development/python-modules/jsonrpc-websocket/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/jsonrpc-websocket/default.nix b/pkgs/development/python-modules/jsonrpc-websocket/default.nix index 9bd8ef8a108b..9da8d8cf8ab1 100644 --- a/pkgs/development/python-modules/jsonrpc-websocket/default.nix +++ b/pkgs/development/python-modules/jsonrpc-websocket/default.nix @@ -33,7 +33,7 @@ buildPythonPackage rec { ]; pytestFlagsArray = [ - "--asyncio-mode=legacy" + "--asyncio-mode=auto" "tests.py" ]; From 8f485cea9b3299c06c1a915f9e964dcb4bfa2f32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sat, 12 Nov 2022 15:45:24 -0800 Subject: [PATCH 13/31] python310Packages.aioswitcher: don't set asyncio mode --- pkgs/development/python-modules/aioswitcher/default.nix | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pkgs/development/python-modules/aioswitcher/default.nix b/pkgs/development/python-modules/aioswitcher/default.nix index 4c7a382813c5..5a671bce26ce 100644 --- a/pkgs/development/python-modules/aioswitcher/default.nix +++ b/pkgs/development/python-modules/aioswitcher/default.nix @@ -44,10 +44,6 @@ buildPythonPackage rec { time-machine ]; - pytestFlagsArray = [ - "--asyncio-mode=legacy" - ]; - disabledTests = [ # AssertionError: Expected <14:00> to be equal to <17:00>, but was not. "test_schedule_parser_with_a_weekly_recurring_enabled_schedule_data" From be64e576776e2a5b35fafffbaa95e39e836a72f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sat, 12 Nov 2022 15:48:39 -0800 Subject: [PATCH 14/31] python310Packages.aiosyncthing: test in asyncio auto mode --- pkgs/development/python-modules/aiosyncthing/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/aiosyncthing/default.nix b/pkgs/development/python-modules/aiosyncthing/default.nix index 624c86fb314b..cefdf75a2866 100644 --- a/pkgs/development/python-modules/aiosyncthing/default.nix +++ b/pkgs/development/python-modules/aiosyncthing/default.nix @@ -35,7 +35,7 @@ buildPythonPackage rec { ]; pytestFlagsArray = [ - "--asyncio-mode=legacy" + "--asyncio-mode=auto" ]; postPatch = '' From c84a93c334a64d4a3e895c66e8005b1ba87819a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sat, 12 Nov 2022 15:49:25 -0800 Subject: [PATCH 15/31] python310Packages.python-smarttub: don't set asyncio mode --- pkgs/development/python-modules/python-smarttub/default.nix | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pkgs/development/python-modules/python-smarttub/default.nix b/pkgs/development/python-modules/python-smarttub/default.nix index b977bc2d0c20..dba19a2ee627 100644 --- a/pkgs/development/python-modules/python-smarttub/default.nix +++ b/pkgs/development/python-modules/python-smarttub/default.nix @@ -38,10 +38,6 @@ buildPythonPackage rec { pytestCheckHook ]; - pytestFlagsArray = [ - "--asyncio-mode=legacy" - ]; - postPatch = '' substituteInPlace setup.py \ --replace "pyjwt~=2.1.0" "pyjwt>=2.1.0" From ed4a26d0be02822b00fd16c05f5b299174c7d9ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sat, 12 Nov 2022 15:51:55 -0800 Subject: [PATCH 16/31] python310Packages.aiogithubapi: test in asyncio auto mode --- pkgs/development/python-modules/aiogithubapi/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/aiogithubapi/default.nix b/pkgs/development/python-modules/aiogithubapi/default.nix index 248443ff2360..051913ccce56 100644 --- a/pkgs/development/python-modules/aiogithubapi/default.nix +++ b/pkgs/development/python-modules/aiogithubapi/default.nix @@ -50,7 +50,7 @@ buildPythonPackage rec { ]; pytestFlagsArray = [ - "--asyncio-mode=legacy" + "--asyncio-mode=auto" ]; pythonImportsCheck = [ From 4df6edf49b10319a30e2b10aec79299cb823cae7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sat, 12 Nov 2022 15:53:59 -0800 Subject: [PATCH 17/31] python310Packages.pyspcwebgw: test in asyncio auto mode --- pkgs/development/python-modules/pyspcwebgw/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/pyspcwebgw/default.nix b/pkgs/development/python-modules/pyspcwebgw/default.nix index b847240869ac..7a40985457da 100644 --- a/pkgs/development/python-modules/pyspcwebgw/default.nix +++ b/pkgs/development/python-modules/pyspcwebgw/default.nix @@ -35,7 +35,7 @@ buildPythonPackage rec { ]; pytestFlagsArray = [ - "--asyncio-mode=legacy" + "--asyncio-mode=auto" ]; pythonImportsCheck = [ "pyspcwebgw" ]; From 413c979ed9805e8bd4096ca74a2c3c89e81346cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sat, 12 Nov 2022 15:56:35 -0800 Subject: [PATCH 18/31] python310Packages.pylutron-caseta: test in asyncio auto mode --- pkgs/development/python-modules/pylutron-caseta/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/pylutron-caseta/default.nix b/pkgs/development/python-modules/pylutron-caseta/default.nix index 114e295c66ea..a14fce498e20 100644 --- a/pkgs/development/python-modules/pylutron-caseta/default.nix +++ b/pkgs/development/python-modules/pylutron-caseta/default.nix @@ -40,7 +40,7 @@ buildPythonPackage rec { ]; pytestFlagsArray = [ - "--asyncio-mode=legacy" + "--asyncio-mode=auto" ]; pythonImportsCheck = [ From cf51f4aee907337eff188ce26b71719802ca78c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sat, 12 Nov 2022 15:58:07 -0800 Subject: [PATCH 19/31] python310Packages.renault-api: test in asyncio auto mode --- pkgs/development/python-modules/renault-api/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/renault-api/default.nix b/pkgs/development/python-modules/renault-api/default.nix index 5b2165c7583b..33e1f0124a7f 100644 --- a/pkgs/development/python-modules/renault-api/default.nix +++ b/pkgs/development/python-modules/renault-api/default.nix @@ -48,7 +48,7 @@ buildPythonPackage rec { ]; pytestFlagsArray = [ - "--asyncio-mode=legacy" + "--asyncio-mode=auto" ]; pythonImportsCheck = [ From 6038d8bb99152e5db11de438ebde0afc7f6e78c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sat, 12 Nov 2022 15:59:18 -0800 Subject: [PATCH 20/31] python310Packages.python-kasa: test in asyncio auto mode --- pkgs/development/python-modules/python-kasa/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/python-kasa/default.nix b/pkgs/development/python-modules/python-kasa/default.nix index d4c9524c9edd..7f55dd64b94e 100644 --- a/pkgs/development/python-modules/python-kasa/default.nix +++ b/pkgs/development/python-modules/python-kasa/default.nix @@ -44,7 +44,7 @@ buildPythonPackage rec { ]; pytestFlagsArray = [ - "--asyncio-mode=legacy" + "--asyncio-mode=auto" ]; disabledTestPaths = [ From c137194c0d1da6f25969aafd3b5737e138625fde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sat, 12 Nov 2022 16:02:11 -0800 Subject: [PATCH 21/31] python310Packages.unifi-discovery: test in asyncio auto mode --- pkgs/development/python-modules/unifi-discovery/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/unifi-discovery/default.nix b/pkgs/development/python-modules/unifi-discovery/default.nix index 3b3bfe4ca979..387818583777 100644 --- a/pkgs/development/python-modules/unifi-discovery/default.nix +++ b/pkgs/development/python-modules/unifi-discovery/default.nix @@ -40,7 +40,7 @@ buildPythonPackage rec { ]; pytestFlagsArray = [ - "--asyncio-mode=legacy" + "--asyncio-mode=auto" ]; postPatch = '' From 976fc437ff96445fb1a76107c00d1e043232396b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sat, 12 Nov 2022 16:03:53 -0800 Subject: [PATCH 22/31] python310Packages.zigpy-znp: don't set asyncio mode --- pkgs/development/python-modules/zigpy-znp/default.nix | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pkgs/development/python-modules/zigpy-znp/default.nix b/pkgs/development/python-modules/zigpy-znp/default.nix index 2b7fef4c8e27..083805f8e7ee 100644 --- a/pkgs/development/python-modules/zigpy-znp/default.nix +++ b/pkgs/development/python-modules/zigpy-znp/default.nix @@ -49,10 +49,6 @@ buildPythonPackage rec { asynctest ]; - pytestFlagsArray = [ - "--asyncio-mode=legacy" - ]; - pythonImportsCheck = [ "zigpy_znp" ]; From 677e78a91114d4c61a3e6facd7b62dbf4ffb2d12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sat, 12 Nov 2022 16:05:23 -0800 Subject: [PATCH 23/31] python310Packages.xbox-webapi: test in asyncio auto mode --- pkgs/development/python-modules/xbox-webapi/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/xbox-webapi/default.nix b/pkgs/development/python-modules/xbox-webapi/default.nix index ccd2d3febf13..de4500378f0d 100644 --- a/pkgs/development/python-modules/xbox-webapi/default.nix +++ b/pkgs/development/python-modules/xbox-webapi/default.nix @@ -45,7 +45,7 @@ buildPythonPackage rec { ]; pytestFlagsArray = [ - "--asyncio-mode=legacy" + "--asyncio-mode=auto" ]; meta = with lib; { From 4e22c8316cc0bfc61d80214453a19efc444034ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sat, 12 Nov 2022 16:10:56 -0800 Subject: [PATCH 24/31] python310Packages.pytraccar: test in asyncio auto mode --- pkgs/development/python-modules/pytraccar/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/pytraccar/default.nix b/pkgs/development/python-modules/pytraccar/default.nix index b50d734d01a1..c65fdf8b1080 100644 --- a/pkgs/development/python-modules/pytraccar/default.nix +++ b/pkgs/development/python-modules/pytraccar/default.nix @@ -40,7 +40,7 @@ buildPythonPackage rec { ]; pytestFlagsArray = [ - "--asyncio-mode=legacy" + "--asyncio-mode=auto" ]; postPatch = '' From 05191c24637162f73299052a138908dae26d70c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sat, 12 Nov 2022 16:12:20 -0800 Subject: [PATCH 25/31] python310Packages.pytautulli: test in asyncio auto mode --- pkgs/development/python-modules/pytautulli/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/pytautulli/default.nix b/pkgs/development/python-modules/pytautulli/default.nix index aee51ae764f8..b21b21842269 100644 --- a/pkgs/development/python-modules/pytautulli/default.nix +++ b/pkgs/development/python-modules/pytautulli/default.nix @@ -40,7 +40,7 @@ buildPythonPackage rec { ]; pytestFlagsArray = [ - "--asyncio-mode=legacy" + "--asyncio-mode=auto" ]; pythonImportsCheck = [ From 89a6cf3f5c7ed5b5ac9ff2b8641ee34eca3aa3cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sat, 12 Nov 2022 16:14:27 -0800 Subject: [PATCH 26/31] python310Packages.subarulink: don't set asyncio mode --- pkgs/development/python-modules/subarulink/default.nix | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pkgs/development/python-modules/subarulink/default.nix b/pkgs/development/python-modules/subarulink/default.nix index d788e164f80d..bf975f5e8483 100644 --- a/pkgs/development/python-modules/subarulink/default.nix +++ b/pkgs/development/python-modules/subarulink/default.nix @@ -36,10 +36,6 @@ buildPythonPackage rec { pytestCheckHook ]; - pytestFlagsArray = [ - "--asyncio-mode=legacy" - ]; - postPatch = '' substituteInPlace setup.cfg \ --replace "--cov=subarulink" "" From 6bc4b501dfb1d471b76e53393e0622fa19646b75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sat, 12 Nov 2022 16:20:02 -0800 Subject: [PATCH 27/31] python310Packages.respx: 0.19.2 -> 0.20.0 https://github.com/lundberg/respx/blob/0.20.0/CHANGELOG.md --- pkgs/development/python-modules/respx/default.nix | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/respx/default.nix b/pkgs/development/python-modules/respx/default.nix index c144ed9adb28..4d4e4e1175d8 100644 --- a/pkgs/development/python-modules/respx/default.nix +++ b/pkgs/development/python-modules/respx/default.nix @@ -12,13 +12,13 @@ buildPythonPackage rec { pname = "respx"; - version = "0.19.2"; + version = "0.20.0"; src = fetchFromGitHub { owner = "lundberg"; repo = pname; rev = version; - sha256 = "sha256-uNmSBJOQF4baq8AWzfwj0kinO19jr6Mp9Yblys/WmZs="; + sha256 = "sha256-xb5jb+l6wA1v/r2yGUB6IuUVXIaTc+3O/w5xn/+A74o="; }; propagatedBuildInputs = [ @@ -35,10 +35,6 @@ buildPythonPackage rec { trio ]; - pytestFlagsArray = [ - "--asyncio-mode=legacy" - ]; - postPatch = '' sed -i "/--cov/d" setup.cfg ''; @@ -52,6 +48,7 @@ buildPythonPackage rec { meta = with lib; { description = "Python library for mocking HTTPX"; homepage = "https://lundberg.github.io/respx/"; + changelog = "https://github.com/lundberg/respx/blob/${src.rev}/CHANGELOG.md"; license = with licenses; [ bsd3 ]; maintainers = with maintainers; [ fab ]; }; From e1d9d522c489483c41a1bab0ccf21a112f877327 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Wed, 16 Nov 2022 08:51:03 -0800 Subject: [PATCH 28/31] python310Packages.homematicip: test in asyncio auto mode --- pkgs/development/python-modules/homematicip/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/homematicip/default.nix b/pkgs/development/python-modules/homematicip/default.nix index e620f317b9fd..aba7e19b69e0 100644 --- a/pkgs/development/python-modules/homematicip/default.nix +++ b/pkgs/development/python-modules/homematicip/default.nix @@ -46,7 +46,7 @@ buildPythonPackage rec { ]; pytestFlagsArray = [ - "--asyncio-mode=legacy" + "--asyncio-mode=auto" ]; disabledTests = [ From e0b5a890fac289536f1551bcc7ac5c1cd15dc103 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Wed, 16 Nov 2022 08:53:51 -0800 Subject: [PATCH 29/31] python310Packages.matrix-nio: don't set asyncio mode --- pkgs/development/python-modules/matrix-nio/default.nix | 1 - 1 file changed, 1 deletion(-) diff --git a/pkgs/development/python-modules/matrix-nio/default.nix b/pkgs/development/python-modules/matrix-nio/default.nix index 1aa838647ad0..45689c045168 100644 --- a/pkgs/development/python-modules/matrix-nio/default.nix +++ b/pkgs/development/python-modules/matrix-nio/default.nix @@ -79,7 +79,6 @@ buildPythonPackage rec { ]; pytestFlagsArray = [ - "--asyncio-mode=legacy" "--benchmark-disable" ]; From b25eb3a000381b3837c0c86e5ad27ec6e466e4a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Wed, 16 Nov 2022 08:55:32 -0800 Subject: [PATCH 30/31] python310Packages.pylitterbot: don't set asyncio mode --- pkgs/development/python-modules/pylitterbot/default.nix | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pkgs/development/python-modules/pylitterbot/default.nix b/pkgs/development/python-modules/pylitterbot/default.nix index 96b7cb163669..169784039c6c 100644 --- a/pkgs/development/python-modules/pylitterbot/default.nix +++ b/pkgs/development/python-modules/pylitterbot/default.nix @@ -49,10 +49,6 @@ buildPythonPackage rec { --replace 'deepdiff = "^5.8.1"' 'deepdiff = ">=5.8.1"' ''; - pytestFlagsArray = [ - "--asyncio-mode=legacy" - ]; - pythonImportsCheck = [ "pylitterbot" ]; From 613ab461ba974d43248e8835d51cb51af6d72a27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sat, 19 Nov 2022 20:56:28 -0800 Subject: [PATCH 31/31] paperless-ngx: test channels in asyncio auto mode --- pkgs/applications/office/paperless-ngx/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/applications/office/paperless-ngx/default.nix b/pkgs/applications/office/paperless-ngx/default.nix index f5de1d65184c..403e3d0d88a6 100644 --- a/pkgs/applications/office/paperless-ngx/default.nix +++ b/pkgs/applications/office/paperless-ngx/default.nix @@ -64,6 +64,7 @@ let sha256 = "sha256-bKrPLbD9zG7DwIYBst1cb+zkDsM8B02wh3D80iortpw="; }; propagatedBuildInputs = oldAttrs.propagatedBuildInputs ++ [ self.daphne ]; + pytestFlagsArray = [ "--asyncio-mode=auto" ]; }); daphne = super.daphne.overridePythonAttrs (oldAttrs: rec {