Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 41 lines 808 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitLab 4, future 5, ifaddr 6, pytestCheckHook 7, pythonOlder 8}: 9 10buildPythonPackage rec { 11 pname = "yeelight"; 12 version = "0.6.2"; 13 disabled = pythonOlder "3.4"; 14 15 src = fetchFromGitLab { 16 owner = "stavros"; 17 repo = "python-yeelight"; 18 rev = "v${version}"; 19 sha256 = "0v0i0s8d5z6b63f2sy42wf85drdzrzswlm1hknzr7v6lfr52pwwm"; 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}