2020-10-09 15:10:28 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2021-04-13 07:35:39 +00:00
|
|
|
, fetchFromGitLab
|
2020-10-09 15:10:28 +00:00
|
|
|
, future
|
|
|
|
, ifaddr
|
|
|
|
, pytestCheckHook
|
2021-04-13 07:35:39 +00:00
|
|
|
, pythonOlder
|
2020-10-09 15:10:28 +00:00
|
|
|
}:
|
2020-08-30 18:55:35 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "yeelight";
|
2021-05-25 14:40:31 +00:00
|
|
|
version = "0.6.3";
|
2021-04-13 07:35:39 +00:00
|
|
|
disabled = pythonOlder "3.4";
|
2020-08-30 18:55:35 +00:00
|
|
|
|
2021-04-13 07:35:39 +00:00
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "stavros";
|
|
|
|
repo = "python-yeelight";
|
|
|
|
rev = "v${version}";
|
2021-05-25 14:40:31 +00:00
|
|
|
sha256 = "sha256-71ncPGcqTRSldWVhJ2uZ2AEgkv1KO2i6UtAUTcJcru8=";
|
2020-08-30 18:55:35 +00:00
|
|
|
};
|
|
|
|
|
2020-10-09 15:10:28 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
future
|
|
|
|
ifaddr
|
2021-04-13 07:35:39 +00:00
|
|
|
];
|
2020-08-30 18:55:35 +00:00
|
|
|
|
2020-10-09 15:10:28 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
2021-04-13 07:35:39 +00:00
|
|
|
];
|
2020-10-09 15:10:28 +00:00
|
|
|
|
|
|
|
pytestFlagsArray = [ "yeelight/tests.py" ];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "yeelight" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2021-04-13 07:35:39 +00:00
|
|
|
description = "Python library for controlling YeeLight RGB bulbs";
|
2020-08-30 18:55:35 +00:00
|
|
|
homepage = "https://gitlab.com/stavros/python-yeelight/";
|
2021-05-03 13:23:22 +00:00
|
|
|
license = licenses.bsd2;
|
2020-08-30 18:55:35 +00:00
|
|
|
maintainers = with maintainers; [ nyanloutre ];
|
|
|
|
};
|
|
|
|
}
|