at 23.11-beta 786 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, click 5, click-log 6, paho-mqtt 7, pyaml 8}: 9 10buildPythonPackage rec { 11 pname = "bch"; 12 version = "1.2.1"; 13 14 src = fetchFromGitHub { 15 owner = "hardwario"; 16 repo = "bch-control-tool"; 17 rev = "v${version}"; 18 sha256 = "/C+NbJ0RrWZ/scv/FiRBTh4h7u0xS4mHVDWQ0WwmlEY="; 19 }; 20 21 propagatedBuildInputs = [ 22 click 23 click-log 24 paho-mqtt 25 pyaml 26 ]; 27 28 postPatch = '' 29 sed -ri 's/@@VERSION@@/${version}/g' \ 30 bch/cli.py setup.py 31 ''; 32 33 pythonImportsCheck = [ "bch" ]; 34 35 meta = with lib; { 36 homepage = "https://github.com/hardwario/bch-control-tool"; 37 description = "HARDWARIO Hub Control Tool"; 38 platforms = platforms.linux; 39 license = licenses.mit; 40 maintainers = with maintainers; [ cynerd ]; 41 }; 42}