0eeabdeb66
GitOrigin-RevId: c07b471b52be8fbc49a7dc194e9b37a6e19ee04d
51 lines
966 B
Nix
51 lines
966 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, webcolors
|
|
, pythonOlder
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "flux-led";
|
|
version = "0.28.10";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Danielhiversen";
|
|
repo = "flux_led";
|
|
rev = version;
|
|
sha256 = "sha256-kH+0W+MgdA7+owqC5KsOnqCidErCaQ3mEueZdP8eAS0=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
webcolors
|
|
];
|
|
|
|
checkInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.py \
|
|
--replace '"pytest-runner>=5.2",' ""
|
|
'';
|
|
|
|
pytestFlagsArray = [
|
|
"tests.py"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"flux_led"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python library to communicate with the flux_led smart bulbs";
|
|
homepage = "https://github.com/Danielhiversen/flux_led";
|
|
license = licenses.lgpl3Plus;
|
|
maintainers = with maintainers; [ colemickens ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|