lol

python312Packages.matrix-nio: 0.24.0 -> 0.25.0

Diff: https://github.com/poljar/matrix-nio/compare/0.24.0...0.25.0

Changelog: https://github.com/poljar/matrix-nio/blob/0.25.0/CHANGELOG.md

+15 -14
+10 -10
pkgs/development/python-modules/matrix-nio/allow-tests-without-olm.patch
··· 1 1 diff --git a/tests/async_client_test.py b/tests/async_client_test.py 2 - index 846c854a32..3a66af2baa 100644 2 + index b0f7a5a..2494fc6 100644 3 3 --- a/tests/async_client_test.py 4 4 +++ b/tests/async_client_test.py 5 - @@ -129,7 +129,10 @@ 5 + @@ -140,7 +140,10 @@ from nio.api import ( 6 + ThreadInclusion, 6 7 ) 7 - from nio.api import EventFormat, ResizingMethod, RoomPreset, RoomVisibility 8 8 from nio.client.async_client import connect_wrapper, on_request_chunk_sent 9 9 -from nio.crypto import OlmDevice, Session, decrypt_attachment 10 10 +try: 11 11 + from nio.crypto import OlmDevice, Session, decrypt_attachment 12 12 +except ImportError: 13 13 + pass 14 - 15 - TEST_ROOM_ID = "!testroom:example.org" 14 + from nio.responses import PublicRoom, PublicRoomsResponse 16 15 16 + BASE_URL_V1 = f"https://example.org{MATRIX_API_PATH_V1}" 17 17 diff --git a/tests/conftest.py b/tests/conftest.py 18 - index ae37ca1169..e5f791a31e 100644 18 + index 0c67ee0..6b77e02 100644 19 19 --- a/tests/conftest.py 20 20 +++ b/tests/conftest.py 21 - @@ -9,11 +9,17 @@ 22 - async_client_pair, 21 + @@ -10,11 +10,17 @@ from conftest_async import ( # noqa: F401 23 22 async_client_pair_same_user, 23 + unauthed_async_client, 24 24 ) 25 25 -from olm import Account 26 26 +try: ··· 40 40 ALICE_ID = "@alice:example.org" 41 41 ALICE_DEVICE_ID = "JLAFKJWSCS" 42 42 diff --git a/tests/helpers.py b/tests/helpers.py 43 - index 63445b605a..05096d1dc3 100644 43 + index 63445b6..05096d1 100644 44 44 --- a/tests/helpers.py 45 45 +++ b/tests/helpers.py 46 - @@ -26,8 +26,11 @@ 46 + @@ -26,8 +26,11 @@ from hyperframe.frame import ( 47 47 WindowUpdateFrame, 48 48 ) 49 49
+5 -4
pkgs/development/python-modules/matrix-nio/default.nix
··· 44 44 45 45 buildPythonPackage rec { 46 46 pname = "matrix-nio"; 47 - version = "0.24.0"; 48 - format = "pyproject"; 47 + version = "0.25.0"; 48 + pyproject = true; 49 49 50 50 src = fetchFromGitHub { 51 51 owner = "poljar"; 52 52 repo = "matrix-nio"; 53 - rev = version; 54 - hash = "sha256-XlswVHLvKOi1qr+I7Mbm4IBjn1DG7glgDsNY48NA5Ew="; 53 + rev = "refs/tags/${version}"; 54 + hash = "sha256-wk1UjnazBdK4BCWXRG5Bn9Rasrk+yy3qqideS8tEAk8="; 55 55 }; 56 56 57 57 patches = [ ··· 82 82 }; 83 83 84 84 pythonRelaxDeps = [ 85 + "aiofiles" 85 86 "aiohttp-socks" # Pending matrix-nio/matrix-nio#516 86 87 ]; 87 88