2022-06-16 17:23:12 +00:00
|
|
|
{ lib
|
|
|
|
, aiohttp
|
2023-08-04 22:07:22 +00:00
|
|
|
, aiomqtt
|
2022-06-16 17:23:12 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pydantic
|
|
|
|
, pythonOlder
|
2023-03-04 12:14:45 +00:00
|
|
|
, setuptools
|
|
|
|
, tenacity
|
2022-06-16 17:23:12 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "yolink-api";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "0.3.1";
|
2023-03-04 12:14:45 +00:00
|
|
|
format = "pyproject";
|
2022-06-16 17:23:12 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "YoSmart-Inc";
|
|
|
|
repo = pname;
|
2022-12-17 10:02:37 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-bxaxjUKmhScku9mBjtuwiaT4TLTsRlro3y/XatyAfs0=";
|
2022-06-16 17:23:12 +00:00
|
|
|
};
|
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
2023-08-04 22:07:22 +00:00
|
|
|
aiomqtt
|
2022-06-16 17:23:12 +00:00
|
|
|
pydantic
|
2023-03-04 12:14:45 +00:00
|
|
|
tenacity
|
2022-06-16 17:23:12 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
# 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";
|
2022-12-17 10:02:37 +00:00
|
|
|
changelog = "https://github.com/YoSmart-Inc/yolink-api/releases/tag/v${version}";
|
2022-06-16 17:23:12 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|