mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 23:23:07 +00:00
42 lines
807 B
Nix
42 lines
807 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitLab
|
|
, future
|
|
, ifaddr
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "yeelight";
|
|
version = "0.7.8";
|
|
disabled = pythonOlder "3.4";
|
|
|
|
src = fetchFromGitLab {
|
|
owner = "stavros";
|
|
repo = "python-yeelight";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-fKtG0D256bK1hIcQiLdzCM+IdD/mmcFpcoE3DEFt7r0=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
future
|
|
ifaddr
|
|
];
|
|
|
|
checkInputs = [
|
|
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 ];
|
|
};
|
|
}
|