python3Packages.yeelight: 0.5.4 -> 0.6.0
This commit is contained in:
parent
cc7a19c7ed
commit
6d145feaea
@ -1,39 +1,39 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, fetchgit
|
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, pythonOlder
|
, fetchFromGitLab
|
||||||
, enum-compat
|
|
||||||
, future
|
, future
|
||||||
, ifaddr
|
, ifaddr
|
||||||
, mock
|
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
|
, pythonOlder
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "yeelight";
|
pname = "yeelight";
|
||||||
version = "0.5.4";
|
version = "0.6.0";
|
||||||
|
disabled = pythonOlder "3.4";
|
||||||
|
|
||||||
src = fetchgit {
|
src = fetchFromGitLab {
|
||||||
url = "https://gitlab.com/stavros/python-yeelight.git";
|
owner = "stavros";
|
||||||
rev = "119faeff0d4f9de8c7f6d0580bdecc1c79bcdaea"; # v0.5.4 wasn't tagged
|
repo = "python-yeelight";
|
||||||
sha256 = "0j2c5pzd3kny7ghr9q7xn9vs8dffvyzz5igaavvvd04w7aph29sy";
|
rev = "v${version}";
|
||||||
|
sha256 = "0yycc2pdqaa9y46jycvm0p6braps7ljg2vvljngdqj2l1a2jmv7x";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
future
|
future
|
||||||
ifaddr
|
ifaddr
|
||||||
] ++ lib.optional (pythonOlder "3.4") enum-compat;
|
];
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
] ++ lib.optional (pythonOlder "3.3") mock;
|
];
|
||||||
|
|
||||||
pytestFlagsArray = [ "yeelight/tests.py" ];
|
pytestFlagsArray = [ "yeelight/tests.py" ];
|
||||||
|
|
||||||
pythonImportsCheck = [ "yeelight" ];
|
pythonImportsCheck = [ "yeelight" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A Python library for controlling YeeLight RGB bulbs";
|
description = "Python library for controlling YeeLight RGB bulbs";
|
||||||
homepage = "https://gitlab.com/stavros/python-yeelight/";
|
homepage = "https://gitlab.com/stavros/python-yeelight/";
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
maintainers = with maintainers; [ nyanloutre ];
|
maintainers = with maintainers; [ nyanloutre ];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user