Merge pull request #175834 from fabaff/yolink-api
This commit is contained in:
commit
d8246f98cb
43
pkgs/development/python-modules/yolink-api/default.nix
Normal file
43
pkgs/development/python-modules/yolink-api/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user