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

42 lines
809 B
Nix
Raw Normal View History

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