nixpkgs/pkgs/development/python-modules/yeelight/default.nix

42 lines
807 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchFromGitLab
, future
, ifaddr
, pytestCheckHook
, pythonOlder
}:
2020-08-30 18:55:35 +00:00
buildPythonPackage rec {
pname = "yeelight";
version = "0.7.8";
disabled = pythonOlder "3.4";
2020-08-30 18:55:35 +00:00
src = fetchFromGitLab {
owner = "stavros";
repo = "python-yeelight";
rev = "v${version}";
sha256 = "sha256-fKtG0D256bK1hIcQiLdzCM+IdD/mmcFpcoE3DEFt7r0=";
2020-08-30 18:55:35 +00:00
};
propagatedBuildInputs = [
future
ifaddr
];
2020-08-30 18:55:35 +00:00
checkInputs = [
pytestCheckHook
];
pytestFlagsArray = [ "yeelight/tests.py" ];
pythonImportsCheck = [ "yeelight" ];
meta = with lib; {
description = "Python library for controlling YeeLight RGB bulbs";
2020-08-30 18:55:35 +00:00
homepage = "https://gitlab.com/stavros/python-yeelight/";
license = licenses.bsd2;
2020-08-30 18:55:35 +00:00
maintainers = with maintainers; [ nyanloutre ];
};
}