depot/third_party/nixpkgs/pkgs/development/python-modules/yeelight/default.nix
Default email a29f39726d Project import generated by Copybara.
GitOrigin-RevId: 39e6bf76474ce742eb027a88c4da6331f0a1526f
2021-05-04 23:07:42 +02:00

41 lines
808 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitLab
, future
, ifaddr
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "yeelight";
version = "0.6.2";
disabled = pythonOlder "3.4";
src = fetchFromGitLab {
owner = "stavros";
repo = "python-yeelight";
rev = "v${version}";
sha256 = "0v0i0s8d5z6b63f2sy42wf85drdzrzswlm1hknzr7v6lfr52pwwm";
};
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 ];
};
}