From ccb612fa02c5a5a4185b859ab82fa3dc61756a7c Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Wed, 22 Oct 2025 15:40:07 +0000 Subject: [PATCH 1/2] python3Packages.async-modbus: 0.2.2 -> 0.2.3 --- pkgs/development/python-modules/async-modbus/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/async-modbus/default.nix b/pkgs/development/python-modules/async-modbus/default.nix index dcc5a4247a6f..e302b4f7568e 100644 --- a/pkgs/development/python-modules/async-modbus/default.nix +++ b/pkgs/development/python-modules/async-modbus/default.nix @@ -14,7 +14,7 @@ buildPythonPackage rec { pname = "async-modbus"; - version = "0.2.2"; + version = "0.2.3"; format = "pyproject"; disabled = pythonOlder "3.7"; @@ -23,7 +23,7 @@ buildPythonPackage rec { owner = "tiagocoutinho"; repo = "async_modbus"; tag = "v${version}"; - hash = "sha256-xms2OfX5bHPXswwhLhyh6HFsm1YqDwKclUirxrgL4i0="; + hash = "sha256-d4TTs3TtD/9eFdzXBaY+QeAMeRWTvsWeaxONeG0AXJU="; }; patches = [ From b750702053f21dc06f8ce49b3278e1a5119b57b0 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 22 Oct 2025 17:59:19 +0200 Subject: [PATCH 2/2] python313Packages.async-modbus: modernize --- .../python-modules/async-modbus/default.nix | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/async-modbus/default.nix b/pkgs/development/python-modules/async-modbus/default.nix index e302b4f7568e..ce18fc2268f2 100644 --- a/pkgs/development/python-modules/async-modbus/default.nix +++ b/pkgs/development/python-modules/async-modbus/default.nix @@ -7,7 +7,6 @@ pytest-asyncio, pytest-cov-stub, pytestCheckHook, - pythonOlder, setuptools, umodbus, }: @@ -15,9 +14,7 @@ buildPythonPackage rec { pname = "async-modbus"; version = "0.2.3"; - format = "pyproject"; - - disabled = pythonOlder "3.7"; + pyproject = true; src = fetchFromGitHub { owner = "tiagocoutinho"; @@ -39,9 +36,9 @@ buildPythonPackage rec { --replace '"--durations=2", "--verbose"' "" ''; - nativeBuildInputs = [ setuptools ]; + build-system = [ setuptools ]; - propagatedBuildInputs = [ + dependencies = [ connio umodbus ]; @@ -57,7 +54,8 @@ buildPythonPackage rec { meta = with lib; { description = "Library for Modbus communication"; homepage = "https://github.com/tiagocoutinho/async_modbus"; - license = with licenses; [ gpl3Plus ]; + changelog = "https://github.com/tiagocoutinho/async_modbus/releases/tag/${src.tag}"; + license = licenses.gpl3Plus; maintainers = with maintainers; [ fab ]; }; }