Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 806 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pyserial 5, pytestCheckHook 6, pythonOlder 7, setuptools 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 rev = "refs/tags/${version}"; 21 hash = "sha256-5IXadb5mjrMwr+L9S1iMN5kba5VGrzYt1p8nBvvLCh4="; 22 }; 23 24 propagatedBuildInputs = [ 25 pyserial 26 ]; 27 28 nativeCheckInputs = [ 29 pytestCheckHook 30 ]; 31 32 pythonImportsCheck = [ 33 "umodbus" 34 ]; 35 36 meta = with lib; { 37 description = "Implementation of the Modbus protocol"; 38 homepage = "https://github.com/AdvancedClimateSystems/uModbus/"; 39 license = with licenses; [ mpl20 ]; 40 maintainers = with maintainers; [ fab ]; 41 }; 42}