Skip to content

Commit b750702

Browse files
authored
python313Packages.async-modbus: modernize
1 parent ccb612f commit b750702

File tree

1 file changed

+5
-7
lines changed
  • pkgs/development/python-modules/async-modbus

1 file changed

+5
-7
lines changed

pkgs/development/python-modules/async-modbus/default.nix

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,14 @@
77
pytest-asyncio,
88
pytest-cov-stub,
99
pytestCheckHook,
10-
pythonOlder,
1110
setuptools,
1211
umodbus,
1312
}:
1413

1514
buildPythonPackage rec {
1615
pname = "async-modbus";
1716
version = "0.2.3";
18-
format = "pyproject";
19-
20-
disabled = pythonOlder "3.7";
17+
pyproject = true;
2118

2219
src = fetchFromGitHub {
2320
owner = "tiagocoutinho";
@@ -39,9 +36,9 @@ buildPythonPackage rec {
3936
--replace '"--durations=2", "--verbose"' ""
4037
'';
4138

42-
nativeBuildInputs = [ setuptools ];
39+
build-system = [ setuptools ];
4340

44-
propagatedBuildInputs = [
41+
dependencies = [
4542
connio
4643
umodbus
4744
];
@@ -57,7 +54,8 @@ buildPythonPackage rec {
5754
meta = with lib; {
5855
description = "Library for Modbus communication";
5956
homepage = "https://github.com/tiagocoutinho/async_modbus";
60-
license = with licenses; [ gpl3Plus ];
57+
changelog = "https://github.com/tiagocoutinho/async_modbus/releases/tag/${src.tag}";
58+
license = licenses.gpl3Plus;
6159
maintainers = with maintainers; [ fab ];
6260
};
6361
}

0 commit comments

Comments
 (0)