default.nix (553B)
1 { lib, python3Packages, fetchFromGitHub }: 2 3 python3Packages.buildPythonPackage rec { 4 pname = "modbus_tk"; 5 version = "1.1.1"; 6 7 src = fetchFromGitHub { 8 owner = "ljean"; 9 repo = "modbus-tk"; 10 rev = version; 11 hash = "sha256-zikfVMFdlOJvuKVQGEsK03i58X6BGFsGWGrGOJZGC0g="; 12 }; 13 14 propagatedBuildInputs = with python3Packages; [ pyserial ]; 15 16 meta = with lib; { 17 description = "Implementation of modbus protocol in python"; 18 inherit (src.meta) homepage; 19 license = licenses.lgpl2; 20 maintainers = [ maintainers.sikmir ]; 21 }; 22 }