2022-06-16 17:23:12 +00:00
|
|
|
{ lib
|
|
|
|
, aiohttp
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2023-03-04 12:14:45 +00:00
|
|
|
, asyncio-mqtt
|
2022-06-16 17:23:12 +00:00
|
|
|
, 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-03-04 12:14:45 +00:00
|
|
|
version = "0.2.8";
|
|
|
|
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-03-04 12:14:45 +00:00
|
|
|
hash = "sha256-dcuP2VPAp3Na1o9DV3bPejCrtaIxvt+g/vRaQYqI67Q=";
|
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-03-04 12:14:45 +00:00
|
|
|
asyncio-mqtt
|
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 ];
|
|
|
|
};
|
|
|
|
}
|