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 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, 18 19 }: 19 20 20 21 buildPythonPackage rec { 21 22 pname = "pymodbus"; 22 - version = "3.6.6"; 23 + version = "3.6.7"; 23 24 pyproject = true; 24 25 25 - disabled = pythonOlder "3.8"; 26 + disabled = pythonOlder "3.9"; 26 27 27 28 src = fetchFromGitHub { 28 29 owner = "pymodbus-dev"; 29 30 repo = "pymodbus"; 30 31 rev = "refs/tags/v${version}"; 31 - hash = "sha256-CnMCHFwzNyzTgVyFDSlE7ggI6eXXYbtGuERIomUa3uA="; 32 + hash = "sha256-SbfvVaIpTz4Mzojx9y13lYei4dEz+1NQEE/7bwz29tQ="; 32 33 }; 33 34 34 35 postPatch = '' ··· 36 37 --replace-fail "--cov-report html " "" 37 38 ''; 38 39 39 - nativeBuildInputs = [ 40 - setuptools 41 - ]; 40 + build-system = [ setuptools ]; 42 41 43 42 passthru.optional-dependencies = { 44 43 repl = [ ··· 48 47 pygments 49 48 click 50 49 ] ++ typer.optional-dependencies.all; 51 - serial = [ 52 - pyserial 53 - ]; 50 + serial = [ pyserial ]; 54 51 }; 55 52 56 53 nativeCheckInputs = [ ··· 70 67 popd 71 68 ''; 72 69 73 - pythonImportsCheck = [ 74 - "pymodbus" 75 - ]; 70 + pythonImportsCheck = [ "pymodbus" ]; 76 71 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 - ]; 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 + ]; 85 82 86 83 meta = with lib; { 87 84 description = "Python implementation of the Modbus protocol"; 88 - mainProgram = "pymodbus.simulator"; 89 85 longDescription = '' 90 86 Pymodbus is a full Modbus protocol implementation using twisted, 91 87 torndo or asyncio for its asynchronous communications core. It can ··· 96 92 changelog = "https://github.com/pymodbus-dev/pymodbus/releases/tag/v${version}"; 97 93 license = with licenses; [ bsd3 ]; 98 94 maintainers = with maintainers; [ fab ]; 95 + mainProgram = "pymodbus.simulator"; 99 96 }; 100 97 }