5e7c2d6cef
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
51 lines
942 B
Nix
51 lines
942 B
Nix
{ lib
|
|
, aiohttp
|
|
, aiomqtt
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pydantic
|
|
, pythonOlder
|
|
, setuptools
|
|
, tenacity
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "yolink-api";
|
|
version = "0.3.1";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "YoSmart-Inc";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-bxaxjUKmhScku9mBjtuwiaT4TLTsRlro3y/XatyAfs0=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
aiohttp
|
|
aiomqtt
|
|
pydantic
|
|
tenacity
|
|
];
|
|
|
|
# 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";
|
|
changelog = "https://github.com/YoSmart-Inc/yolink-api/releases/tag/v${version}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|