at master 808 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pyserial, 6 pytestCheckHook, 7 pythonOlder, 8}: 9 10buildPythonPackage rec { 11 pname = "umodbus"; 12 version = "1.0.4"; 13 format = "setuptools"; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchFromGitHub { 18 owner = "AdvancedClimateSystems"; 19 repo = "uModbus"; 20 tag = version; 21 hash = "sha256-5IXadb5mjrMwr+L9S1iMN5kba5VGrzYt1p8nBvvLCh4="; 22 }; 23 24 propagatedBuildInputs = [ pyserial ]; 25 26 __darwinAllowLocalNetworking = true; 27 28 nativeCheckInputs = [ pytestCheckHook ]; 29 30 pythonImportsCheck = [ "umodbus" ]; 31 32 meta = with lib; { 33 description = "Implementation of the Modbus protocol"; 34 homepage = "https://github.com/AdvancedClimateSystems/uModbus/"; 35 license = with licenses; [ mpl20 ]; 36 maintainers = with maintainers; [ fab ]; 37 }; 38}