1 { lib, python3Packages, fetchFromGitHub }:
3 python3Packages.buildPythonApplication rec {
4 pname = "broadlink-cli";
7 # the tools are available as part of the source distribution from GH but
8 # not pypi, so we have to fetch them here.
9 src = fetchFromGitHub {
11 repo = "python-broadlink";
12 rev = "refs/tags/${version}";
13 sha256 = "sha256-fqhi4K8Ceh8Rs0ExteCfAuVfEamFjMCjCFm6DRAJDmI=";
18 propagatedBuildInputs = with python3Packages; [
25 install -Dm555 -t $out/bin cli/broadlink_{cli,discovery}
26 install -Dm444 -t $out/share/doc/broadlink cli/README.md
32 description = "Tools for interfacing with Broadlink RM2/3 (Pro) remote controls, A1 sensor platforms and SP2/3 smartplugs";
33 maintainers = with maintainers; [ peterhoeg ];
34 inherit (python3Packages.broadlink.meta) homepage license;