1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 setuptools, 6 pythonOlder, 7 pyserial, 8}: 9 10buildPythonPackage rec { 11 pname = "modbus-tk"; 12 version = "1.1.5"; 13 pyproject = true; 14 15 disabled = pythonOlder "3.10"; 16 17 src = fetchPypi { 18 pname = "modbus_tk"; 19 inherit version; 20 hash = "sha256-d6cqOtnV0yodIRC8BCFmgMpX11IpEuDycem/XxtwGzY="; 21 }; 22 23 build-system = [ setuptools ]; 24 25 dependencies = [ pyserial ]; 26 27 # Source no tagged anymore and PyPI doesn't ship tests 28 doCheck = false; 29 30 pythonImportsCheck = [ "modbus_tk" ]; 31 32 meta = { 33 description = "Module for simple Modbus interactions"; 34 homepage = "https://github.com/ljean/modbus-tk"; 35 license = lib.licenses.lgpl21Plus; 36 maintainers = with lib.maintainers; [ fab ]; 37 }; 38}