1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, webcolors 5, pythonOlder 6, pytestCheckHook 7}: 8 9buildPythonPackage rec { 10 pname = "flux-led"; 11 version = "0.24.25"; 12 format = "setuptools"; 13 14 disabled = pythonOlder "3.7"; 15 16 src = fetchFromGitHub { 17 owner = "Danielhiversen"; 18 repo = "flux_led"; 19 rev = version; 20 sha256 = "sha256-HhoqsdaqNKdKH63glYEl5mRBFImu6Nxw5gwF7JAJABk="; 21 }; 22 23 propagatedBuildInputs = [ 24 webcolors 25 ]; 26 27 checkInputs = [ 28 pytestCheckHook 29 ]; 30 31 postPatch = '' 32 substituteInPlace setup.py \ 33 --replace '"pytest-runner>=5.2",' "" 34 ''; 35 36 pytestFlagsArray = [ 37 "tests.py" 38 ]; 39 40 pythonImportsCheck = [ 41 "flux_led" 42 ]; 43 44 meta = with lib; { 45 description = "Python library to communicate with the flux_led smart bulbs"; 46 homepage = "https://github.com/Danielhiversen/flux_led"; 47 license = licenses.lgpl3Plus; 48 maintainers = with maintainers; [ colemickens ]; 49 platforms = platforms.linux; 50 }; 51}