Merge pull request #175834 from fabaff/yolink-api

This commit is contained in:
Martin Weinelt 2022-06-01 22:42:51 +02:00 committed by GitHub
commit d8246f98cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 45 additions and 0 deletions

View File

@ -0,0 +1,43 @@
{ lib
, aiohttp
, buildPythonPackage
, fetchFromGitHub
, paho-mqtt
, pydantic
, pythonOlder
}:
buildPythonPackage rec {
pname = "yolink-api";
version = "0.0.5";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "YoSmart-Inc";
repo = pname;
rev = "v${version}";
hash = "sha256-LCdPg+T6GMcE8NF32caWgC5lnaN7KOj2gZA/JHPcZKI=";
};
propagatedBuildInputs = [
aiohttp
paho-mqtt
pydantic
];
# Module has no tests
doCheck = false;
pythonImportsCheck = [
"yolink"
];
meta = with lib; {
description = "Library to interface with Yolink";
homepage = "https://github.com/YoSmart-Inc/yolink-api";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}

View File

@ -11370,6 +11370,8 @@ in {
yoda = toPythonModule (pkgs.yoda.override { inherit python; });
yolink-api = callPackage ../development/python-modules/yolink-api { };
youless-api = callPackage ../development/python-modules/youless-api { };
youtube-dl = callPackage ../tools/misc/youtube-dl { };