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.10"; 13 format = "setuptools"; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchFromGitLab { 18 owner = "stavros"; 19 repo = "python-yeelight"; 20 rev = "v${version}"; 21 sha256 = "sha256-vUsL1CvhYRtv75gkmiPe/UkAtBDZPy1iK2BPUupMXz8="; 22 }; 23 24 propagatedBuildInputs = [ 25 future 26 ifaddr 27 ]; 28 29 checkInputs = [ 30 pytestCheckHook 31 ]; 32 33 pytestFlagsArray = [ 34 "yeelight/tests.py" 35 ]; 36 37 pythonImportsCheck = [ 38 "yeelight" 39 ]; 40 41 meta = with lib; { 42 description = "Python library for controlling YeeLight RGB bulbs"; 43 homepage = "https://gitlab.com/stavros/python-yeelight/"; 44 license = licenses.bsd2; 45 maintainers = with maintainers; [ nyanloutre ]; 46 }; 47}