|
|
|
@ -1,23 +1,44 @@ |
|
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub |
|
|
|
|
, aiohttp, zigpy |
|
|
|
|
, pytest, isPy27 }: |
|
|
|
|
{ lib |
|
|
|
|
, buildPythonPackage |
|
|
|
|
, fetchFromGitHub |
|
|
|
|
, webcolors |
|
|
|
|
, pythonOlder |
|
|
|
|
, pytestCheckHook |
|
|
|
|
}: |
|
|
|
|
|
|
|
|
|
buildPythonPackage rec { |
|
|
|
|
pname = "flux_led"; |
|
|
|
|
version = "0.22"; |
|
|
|
|
disabled = isPy27; |
|
|
|
|
version = "0.24.8"; |
|
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7"; |
|
|
|
|
|
|
|
|
|
src = fetchFromGitHub { |
|
|
|
|
owner = "Danielhiversen"; |
|
|
|
|
repo = "flux_led"; |
|
|
|
|
rev = version; |
|
|
|
|
sha256 = "1zgajlkhclyrqhkmivna4ha2lyvfpk5929s042gy59p7mzpkvjx7"; |
|
|
|
|
sha256 = "sha256-A4Duwa4IRDrxpPUb0yyfgoR0GsXD0ewO0cr+1bvl7/4="; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ |
|
|
|
|
webcolors |
|
|
|
|
]; |
|
|
|
|
|
|
|
|
|
checkInputs = [ |
|
|
|
|
pytestCheckHook |
|
|
|
|
]; |
|
|
|
|
|
|
|
|
|
pytestFlagsArray = [ |
|
|
|
|
"tests.py" |
|
|
|
|
]; |
|
|
|
|
|
|
|
|
|
pythonImportsCheck = [ |
|
|
|
|
"flux_led" |
|
|
|
|
]; |
|
|
|
|
|
|
|
|
|
meta = with lib; { |
|
|
|
|
description = "A Python library to communicate with the flux_led smart bulbs"; |
|
|
|
|
description = "Python library to communicate with the flux_led smart bulbs"; |
|
|
|
|
homepage = "https://github.com/Danielhiversen/flux_led"; |
|
|
|
|
license = licenses.lgpl3; |
|
|
|
|
license = licenses.lgpl3Plus; |
|
|
|
|
maintainers = with maintainers; [ colemickens ]; |
|
|
|
|
platforms = platforms.linux; |
|
|
|
|
}; |
|
|
|
|