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