1{ lib 2, buildPythonPackage 3, fetchFromGitLab 4, future 5, ifaddr 6, pytestCheckHook 7, pythonOlder 8}: 9 10buildPythonPackage rec { 11 pname = "yeelight"; 12 version = "0.7.8"; 13 disabled = pythonOlder "3.4"; 14 15 src = fetchFromGitLab { 16 owner = "stavros"; 17 repo = "python-yeelight"; 18 rev = "v${version}"; 19 sha256 = "sha256-fKtG0D256bK1hIcQiLdzCM+IdD/mmcFpcoE3DEFt7r0="; 20 }; 21 22 propagatedBuildInputs = [ 23 future 24 ifaddr 25 ]; 26 27 checkInputs = [ 28 pytestCheckHook 29 ]; 30 31 pytestFlagsArray = [ "yeelight/tests.py" ]; 32 33 pythonImportsCheck = [ "yeelight" ]; 34 35 meta = with lib; { 36 description = "Python library for controlling YeeLight RGB bulbs"; 37 homepage = "https://gitlab.com/stavros/python-yeelight/"; 38 license = licenses.bsd2; 39 maintainers = with maintainers; [ nyanloutre ]; 40 }; 41}