Merge pull request #263783 from mweinelt/operation-asynctest

Remove more asynctest references on Python 3.11

authored by Martin Weinelt and committed by GitHub f177b76b b48c6764

+46 -67
-7
pkgs/development/python-modules/aiohttp/default.nix
··· 18 18 , aiodns 19 19 , brotli 20 20 , faust-cchardet 21 - , asynctest 22 21 , typing-extensions 23 - , idna-ssl 24 22 # tests_require 25 23 , async-generator 26 24 , freezegun ··· 75 73 aiodns 76 74 brotli 77 75 faust-cchardet 78 - ] ++ lib.optionals (pythonOlder "3.8") [ 79 - asynctest 80 - typing-extensions 81 - ] ++ lib.optionals (pythonOlder "3.7") [ 82 - idna-ssl 83 76 ]; 84 77 85 78 # NOTE: pytest-xdist cannot be added because it is flaky. See https://github.com/NixOS/nixpkgs/issues/230597 for more info.
-37
pkgs/development/python-modules/aionotify/default.nix
··· 1 - { lib 2 - , buildPythonPackage 3 - , fetchFromGitHub 4 - , asynctest 5 - , pythonOlder 6 - }: 7 - 8 - buildPythonPackage rec { 9 - pname = "aionotify"; 10 - version = "0.2.0"; 11 - 12 - src = fetchFromGitHub { 13 - owner = "rbarrois"; 14 - repo = "aionotify"; 15 - rev = "v${version}"; 16 - sha256 = "1sk9i8czxgsbrswsf1nlb4c82vgnlzi8zrvrxdip92w2z8hqh43y"; 17 - }; 18 - 19 - disabled = pythonOlder "3.5"; 20 - 21 - preCheck = '' 22 - substituteInPlace tests/test_usage.py \ 23 - --replace "asyncio.wait_for(task, timeout, loop=self.loop)" "asyncio.wait_for(task, timeout)" 24 - ''; 25 - 26 - nativeCheckInputs = [ 27 - asynctest 28 - ]; 29 - 30 - meta = with lib; { 31 - homepage = "https://github.com/rbarrois/aionotify"; 32 - description = "Simple, asyncio-based inotify library for Python"; 33 - license = with lib.licenses; [ bsd2 ]; 34 - platforms = platforms.linux; 35 - maintainers = with lib.maintainers; [ ]; 36 - }; 37 - }
+20 -21
pkgs/development/python-modules/intellifire4py/default.nix
··· 1 1 { lib 2 2 , aenum 3 - , aiohttp 4 - , asynctest 5 3 , buildPythonPackage 6 4 , fetchFromGitHub 5 + , httpx 6 + , poetry-core 7 7 , pydantic 8 - , pytest-mock 8 + , pytest-asyncio 9 + , pytest-httpx 9 10 , pytestCheckHook 10 11 , pythonOlder 11 - , requests 12 + , rich 12 13 }: 13 14 14 15 buildPythonPackage rec { 15 16 pname = "intellifire4py"; 16 - version = "2.2.2"; 17 - format = "setuptools"; 17 + version = "3.1.29"; 18 + pyproject = true; 18 19 19 20 disabled = pythonOlder "3.7"; 20 21 21 22 src = fetchFromGitHub { 22 23 owner = "jeeftor"; 23 24 repo = pname; 24 - rev = "refs/tags/${version}"; 25 - hash = "sha256-iqlKfpnETLqQwy5sNcK2x/TgmuN2hCfYoHEFK2WWVXI="; 25 + rev = "refs/tags/v${version}"; 26 + hash = "sha256-isAVq45UnKB8uMg7bhehpxIk5OOLcWx+VNZhJ8dE52Y="; 26 27 }; 28 + 29 + nativeBuildInputs = [ 30 + poetry-core 31 + ]; 27 32 28 33 propagatedBuildInputs = [ 29 34 aenum 30 - aiohttp 35 + httpx 31 36 pydantic 32 - requests 33 - ]; 34 - 35 - nativeCheckInputs = [ 36 - asynctest 37 - pytest-mock 38 - pytestCheckHook 39 - ]; 40 - 41 - disabledTests = [ 42 - # Test file is missing 43 - "test_json_files" 37 + rich 44 38 ]; 45 39 46 40 pythonImportsCheck = [ 47 41 "intellifire4py" 42 + ]; 43 + nativeCheckInputs = [ 44 + pytest-asyncio 45 + pytest-httpx 46 + pytestCheckHook 48 47 ]; 49 48 50 49 meta = with lib; {
+2
pkgs/development/python-modules/pymelcloud/default.nix
··· 26 26 aiohttp 27 27 ]; 28 28 29 + doCheck = pythonOlder "3.11"; # asynctest is unsupported on python3.11 30 + 29 31 nativeCheckInputs = [ 30 32 asynctest 31 33 pytest-asyncio
+2
pkgs/development/python-modules/pyversasense/default.nix
··· 26 26 aiohttp 27 27 ]; 28 28 29 + doCheck = pythonOlder "3.11"; # asynctest unsupported on python3.11 30 + 29 31 nativeCheckInputs = [ 30 32 asynctest 31 33 pytest-asyncio
+2
pkgs/development/python-modules/zigpy-cc/default.nix
··· 32 32 zigpy 33 33 ]; 34 34 35 + doCheck = pythonOlder "3.11"; # asynctest is unsupported on python3.11 36 + 35 37 nativeCheckInputs = [ 36 38 asynctest 37 39 pytest-asyncio
+19
pkgs/servers/home-assistant/default.nix
··· 117 117 }; 118 118 }); 119 119 120 + intellifire4py = super.intellifire4py.overridePythonAttrs (oldAttrs: rec { 121 + version = "2.2.2"; 122 + src = fetchFromGitHub { 123 + owner = "jeeftor"; 124 + repo = "intellifire4py"; 125 + rev = "refs/tags/${version}"; 126 + hash = "sha256-iqlKfpnETLqQwy5sNcK2x/TgmuN2hCfYoHEFK2WWVXI="; 127 + }; 128 + nativeBuildInputs = with super; [ 129 + setuptools 130 + ]; 131 + propagatedBuildInputs = with super; [ 132 + aenum 133 + aiohttp 134 + pydantic 135 + ]; 136 + doCheck = false; # requires asynctest, which does not work on python 3.11 137 + }); 138 + 120 139 jaraco-abode = super.jaraco-abode.overridePythonAttrs (oldAttrs: rec { 121 140 version = "3.3.0"; 122 141 src = fetchFromGitHub {
+1
pkgs/top-level/python-aliases.nix
··· 36 36 abodepy = jaraco-abode; # added 2023-02-01 37 37 acebinf = throw "acebinf has been removed because it is abandoned and broken."; # Added 2023-05-19 38 38 aioh2 = throw "aioh2 has been removed because it is abandoned and broken."; # Added 2022-03-30 39 + aionotify = throw "aionotify has been removed because is unmaintained and incompatible with python3.11."; # Added 2023-10-27 39 40 aiosenseme = throw "aiosenseme has been removed, because it does no longer work with the latest firmware and has become unmaintained"; # Added 2023-07-05 40 41 amazon_kclpy = amazon-kclpy; # added 2023-08-08 41 42 ansible-base = throw "ansible-base has been removed, because it is end of life"; # added 2022-03-30
-2
pkgs/top-level/python-packages.nix
··· 304 304 305 305 aionanoleaf = callPackage ../development/python-modules/aionanoleaf { }; 306 306 307 - aionotify = callPackage ../development/python-modules/aionotify { }; 308 - 309 307 aionotion = callPackage ../development/python-modules/aionotion { }; 310 308 311 309 aiooncue = callPackage ../development/python-modules/aiooncue { };