a66bca1520
GitOrigin-RevId: 40f79f003b6377bd2f4ed4027dde1f8f922995dd
44 lines
865 B
Nix
44 lines
865 B
Nix
{ lib
|
|
, aiohttp
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, paho-mqtt
|
|
, pydantic
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "yolink-api";
|
|
version = "0.1.5";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "YoSmart-Inc";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-6Ch17aKUT8jVUo+pYD5EvydEzP/TTjLtgkUQJnHYkKg=";
|
|
};
|
|
|
|
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";
|
|
changelog = "https://github.com/YoSmart-Inc/yolink-api/releases/tag/v${version}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|