lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

python3Packages.async-modbus: 0.2.0 -> 0.2.1

+84 -2
+11 -2
pkgs/development/python-modules/async-modbus/default.nix
··· 2 2 , buildPythonPackage 3 3 , connio 4 4 , fetchFromGitHub 5 + , fetchpatch 5 6 , pytest-asyncio 6 7 , pytestCheckHook 7 8 , pythonOlder ··· 11 12 12 13 buildPythonPackage rec { 13 14 pname = "async-modbus"; 14 - version = "0.2.0"; 15 + version = "0.2.1"; 15 16 format = "pyproject"; 16 17 17 18 disabled = pythonOlder "3.7"; ··· 20 21 owner = "tiagocoutinho"; 21 22 repo = "async_modbus"; 22 23 rev = "refs/tags/v${version}"; 23 - hash = "sha256-TB+ndUvLZ9G3XXEBpLb4ULHlYZC2CoqGnL2BjMQrhRg="; 24 + hash = "sha256-OTt/rUa3KLVSFOIUyMNHnqHvPtISxTposNFAgoixRfk="; 24 25 }; 26 + 27 + patches = [ 28 + (fetchpatch { 29 + # Fix tests; https://github.com/tiagocoutinho/async_modbus/pull/13 30 + url = "https://github.com/tiagocoutinho/async_modbus/commit/d81d8ffe94870f0f505e0c8a0694768c98053ecc.patch"; 31 + hash = "sha256-mG3XO2nAFYitatkswU7er29BJc/A0IL1rL2Zu4daZ7k="; 32 + }) 33 + ]; 25 34 26 35 postPatch = '' 27 36 substituteInPlace pyproject.toml \
+73
pkgs/development/python-modules/async-modbus/fix-tests.patch
··· 1 + diff --git a/tests/test_async_modbus.py b/tests/test_async_modbus.py 2 + index b0bd3fd..6b8df87 100644 3 + --- a/tests/test_async_modbus.py 4 + +++ b/tests/test_async_modbus.py 5 + @@ -194,7 +194,7 @@ async def test_read_coils(proto, slave_id, starting_address, expected_reply): 6 + await coro 7 + else: 8 + reply = await coro 9 + - assert (reply == expected_reply).all() 10 + + assert reply == expected_reply 11 + 12 + server = Server(slave_id, starting_address, expected_reply) 13 + client = AsyncClient(server, protocol) 14 + @@ -204,7 +204,7 @@ async def test_read_coils(proto, slave_id, starting_address, expected_reply): 15 + await coro 16 + else: 17 + reply = await coro 18 + - assert (reply == expected_reply).all() 19 + + assert reply == expected_reply 20 + 21 + 22 + @pytest.mark.asyncio 23 + @@ -273,7 +273,7 @@ async def test_read_discrete_inputs(proto, slave_id, starting_address, expected_ 24 + await coro 25 + else: 26 + reply = await coro 27 + - assert (reply == expected_reply).all() 28 + + assert reply == expected_reply 29 + 30 + server = Server(slave_id, starting_address, expected_reply) 31 + client = AsyncClient(server, protocol) 32 + @@ -283,7 +283,7 @@ async def test_read_discrete_inputs(proto, slave_id, starting_address, expected_ 33 + await coro 34 + else: 35 + reply = await coro 36 + - assert (reply == expected_reply).all() 37 + + assert reply == expected_reply 38 + 39 + 40 + @pytest.mark.asyncio 41 + @@ -306,7 +306,7 @@ async def test_read_holding_registers( 42 + await coro 43 + else: 44 + reply = await coro 45 + - assert (reply == expected_reply).all() 46 + + assert reply == expected_reply 47 + 48 + server = Server(slave_id, starting_address, expected_reply) 49 + client = AsyncClient(server, protocol) 50 + @@ -316,7 +316,7 @@ async def test_read_holding_registers( 51 + await coro 52 + else: 53 + reply = await coro 54 + - assert (reply == expected_reply).all() 55 + + assert reply == expected_reply 56 + 57 + 58 + @pytest.mark.asyncio 59 + @@ -383,7 +383,7 @@ async def test_read_input_registers(proto, slave_id, starting_address, expected_ 60 + await coro 61 + else: 62 + reply = await coro 63 + - assert (reply == expected_reply).all() 64 + + assert reply == expected_reply 65 + 66 + server = Server(slave_id, starting_address, expected_reply) 67 + client = AsyncClient(server, protocol) 68 + @@ -393,4 +393,4 @@ async def test_read_input_registers(proto, slave_id, starting_address, expected_ 69 + await coro 70 + else: 71 + reply = await coro 72 + - assert (reply == expected_reply).all() 73 + + assert reply == expected_reply