a0cb138ada
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
47 lines
852 B
Nix
47 lines
852 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitLab
|
|
, future
|
|
, ifaddr
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "yeelight";
|
|
version = "0.7.10";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitLab {
|
|
owner = "stavros";
|
|
repo = "python-yeelight";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-vUsL1CvhYRtv75gkmiPe/UkAtBDZPy1iK2BPUupMXz8=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
future
|
|
ifaddr
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pytestFlagsArray = [
|
|
"yeelight/tests.py"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"yeelight"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python library for controlling YeeLight RGB bulbs";
|
|
homepage = "https://gitlab.com/stavros/python-yeelight/";
|
|
license = licenses.bsd2;
|
|
maintainers = with maintainers; [ nyanloutre ];
|
|
};
|
|
}
|