mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 03:23:29 +03:00

Diff: https://github.com/YoSmart-Inc/yolink-api/compare/refs/tags/v0.5.2...refs/tags/v0.5.4 Changelog: https://github.com/YoSmart-Inc/yolink-api/releases/tag/v0.5.4
48 lines
919 B
Nix
48 lines
919 B
Nix
{
|
|
lib,
|
|
aiohttp,
|
|
aiomqtt,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pydantic,
|
|
pythonOlder,
|
|
setuptools,
|
|
tenacity,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "yolink-api";
|
|
version = "0.5.4";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "YoSmart-Inc";
|
|
repo = "yolink-api";
|
|
tag = "v${version}";
|
|
hash = "sha256-b83ozdnaZ15LMUiDJH2LPZv9D/ovV0Nx15+R6tip6Yk=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
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/${src.tag}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|