Merge pull request #302867 from r-ryantm/auto-update/python312Packages.pymodbus

python312Packages.pymodbus: 3.6.6 -> 3.6.7

authored by Nick Cao and committed by GitHub 6eeb73f9 580088da

+35 -38
+35 -38
pkgs/development/python-modules/pymodbus/default.nix
··· 1 - { lib 2 - , aiohttp 3 - , buildPythonPackage 4 - , click 5 - , fetchFromGitHub 6 - , prompt-toolkit 7 - , pygments 8 - , pyserial 9 - , pytest-asyncio 10 - , pytest-xdist 11 - , pytestCheckHook 12 - , pythonOlder 13 - , redis 14 - , setuptools 15 - , sqlalchemy 16 - , twisted 17 - , typer 18 }: 19 20 buildPythonPackage rec { 21 pname = "pymodbus"; 22 - version = "3.6.6"; 23 pyproject = true; 24 25 - disabled = pythonOlder "3.8"; 26 27 src = fetchFromGitHub { 28 owner = "pymodbus-dev"; 29 repo = "pymodbus"; 30 rev = "refs/tags/v${version}"; 31 - hash = "sha256-CnMCHFwzNyzTgVyFDSlE7ggI6eXXYbtGuERIomUa3uA="; 32 }; 33 34 postPatch = '' ··· 36 --replace-fail "--cov-report html " "" 37 ''; 38 39 - nativeBuildInputs = [ 40 - setuptools 41 - ]; 42 43 passthru.optional-dependencies = { 44 repl = [ ··· 48 pygments 49 click 50 ] ++ typer.optional-dependencies.all; 51 - serial = [ 52 - pyserial 53 - ]; 54 }; 55 56 nativeCheckInputs = [ ··· 70 popd 71 ''; 72 73 - pythonImportsCheck = [ 74 - "pymodbus" 75 - ]; 76 77 - disabledTests = [ 78 - # Tests often hang 79 - "test_connected" 80 - ] ++ lib.optionals (lib.versionAtLeast aiohttp.version "3.9.0") [ 81 - "test_split_serial_packet" 82 - "test_serial_poll" 83 - "test_simulator" 84 - ]; 85 86 meta = with lib; { 87 description = "Python implementation of the Modbus protocol"; 88 - mainProgram = "pymodbus.simulator"; 89 longDescription = '' 90 Pymodbus is a full Modbus protocol implementation using twisted, 91 torndo or asyncio for its asynchronous communications core. It can ··· 96 changelog = "https://github.com/pymodbus-dev/pymodbus/releases/tag/v${version}"; 97 license = with licenses; [ bsd3 ]; 98 maintainers = with maintainers; [ fab ]; 99 }; 100 }
··· 1 + { 2 + lib, 3 + aiohttp, 4 + buildPythonPackage, 5 + click, 6 + fetchFromGitHub, 7 + prompt-toolkit, 8 + pygments, 9 + pyserial, 10 + pytest-asyncio, 11 + pytest-xdist, 12 + pytestCheckHook, 13 + pythonOlder, 14 + redis, 15 + setuptools, 16 + sqlalchemy, 17 + twisted, 18 + typer, 19 }: 20 21 buildPythonPackage rec { 22 pname = "pymodbus"; 23 + version = "3.6.7"; 24 pyproject = true; 25 26 + disabled = pythonOlder "3.9"; 27 28 src = fetchFromGitHub { 29 owner = "pymodbus-dev"; 30 repo = "pymodbus"; 31 rev = "refs/tags/v${version}"; 32 + hash = "sha256-SbfvVaIpTz4Mzojx9y13lYei4dEz+1NQEE/7bwz29tQ="; 33 }; 34 35 postPatch = '' ··· 37 --replace-fail "--cov-report html " "" 38 ''; 39 40 + build-system = [ setuptools ]; 41 42 passthru.optional-dependencies = { 43 repl = [ ··· 47 pygments 48 click 49 ] ++ typer.optional-dependencies.all; 50 + serial = [ pyserial ]; 51 }; 52 53 nativeCheckInputs = [ ··· 67 popd 68 ''; 69 70 + pythonImportsCheck = [ "pymodbus" ]; 71 72 + disabledTests = 73 + [ 74 + # Tests often hang 75 + "test_connected" 76 + ] 77 + ++ lib.optionals (lib.versionAtLeast aiohttp.version "3.9.0") [ 78 + "test_split_serial_packet" 79 + "test_serial_poll" 80 + "test_simulator" 81 + ]; 82 83 meta = with lib; { 84 description = "Python implementation of the Modbus protocol"; 85 longDescription = '' 86 Pymodbus is a full Modbus protocol implementation using twisted, 87 torndo or asyncio for its asynchronous communications core. It can ··· 92 changelog = "https://github.com/pymodbus-dev/pymodbus/releases/tag/v${version}"; 93 license = with licenses; [ bsd3 ]; 94 maintainers = with maintainers; [ fab ]; 95 + mainProgram = "pymodbus.simulator"; 96 }; 97 }