mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-10-19 20:23:19 +02:00
python3Packages.yeelight: 0.5.4 -> 0.6.0
This commit is contained in:
parent
cc7a19c7ed
commit
6d145feaea
|
@ -1,39 +1,39 @@
|
|||
{ lib
|
||||
, fetchgit
|
||||
, buildPythonPackage
|
||||
, pythonOlder
|
||||
, enum-compat
|
||||
, fetchFromGitLab
|
||||
, future
|
||||
, ifaddr
|
||||
, mock
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "yeelight";
|
||||
version = "0.5.4";
|
||||
version = "0.6.0";
|
||||
disabled = pythonOlder "3.4";
|
||||
|
||||
src = fetchgit {
|
||||
url = "https://gitlab.com/stavros/python-yeelight.git";
|
||||
rev = "119faeff0d4f9de8c7f6d0580bdecc1c79bcdaea"; # v0.5.4 wasn't tagged
|
||||
sha256 = "0j2c5pzd3kny7ghr9q7xn9vs8dffvyzz5igaavvvd04w7aph29sy";
|
||||
src = fetchFromGitLab {
|
||||
owner = "stavros";
|
||||
repo = "python-yeelight";
|
||||
rev = "v${version}";
|
||||
sha256 = "0yycc2pdqaa9y46jycvm0p6braps7ljg2vvljngdqj2l1a2jmv7x";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
future
|
||||
ifaddr
|
||||
] ++ lib.optional (pythonOlder "3.4") enum-compat;
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
] ++ lib.optional (pythonOlder "3.3") mock;
|
||||
];
|
||||
|
||||
pytestFlagsArray = [ "yeelight/tests.py" ];
|
||||
|
||||
pythonImportsCheck = [ "yeelight" ];
|
||||
|
||||
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/";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ nyanloutre ];
|
||||
|
|
Loading…
Reference in a new issue