Merge pull request #97151 from jonringer/home_assistant_plugins

Home assistant plugins: pysqueezebox and yeelight
This commit is contained in:
Martin Weinelt
2020-09-06 02:20:43 +02:00
committed by GitHub
4 changed files with 53 additions and 2 deletions

View File

@@ -0,0 +1,27 @@
{ stdenv, fetchPypi, buildPythonPackage, pythonOlder, aiohttp }:
buildPythonPackage rec {
pname = "pysqueezebox";
version = "0.4.0";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "02d73e98314a63a38c314d40942a0b098fb59d2f08ac39b2627cfa73f785cf0d";
};
propagatedBuildInputs = [
aiohttp
];
# No tests in the Pypi distribution
doCheck = false;
pythonImportsCheck = [ "pysqueezebox" ];
meta = with stdenv.lib; {
description = "Asynchronous library to control Logitech Media Server";
homepage = "https://github.com/rajlaud/pysqueezebox";
license = licenses.asl20;
maintainers = with maintainers; [ nyanloutre ];
};
}

View File

@@ -0,0 +1,20 @@
{ stdenv, fetchPypi, buildPythonPackage, future, enum-compat }:
buildPythonPackage rec {
pname = "yeelight";
version = "0.5.3";
src = fetchPypi {
inherit pname version;
sha256 = "8d49846f0cede1e312cbcd1d0e44c42073910bbcadb31b87ce2a7d24dea3af38";
};
propagatedBuildInputs = [ future enum-compat ];
meta = with stdenv.lib; {
description = "A Python library for controlling YeeLight RGB bulbs";
homepage = "https://gitlab.com/stavros/python-yeelight/";
license = licenses.asl20;
maintainers = with maintainers; [ nyanloutre ];
};
}