depot/third_party/nixpkgs/pkgs/development/python-modules/yolink-api/default.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

48 lines
930 B
Nix

{
lib,
aiohttp,
aiomqtt,
buildPythonPackage,
fetchFromGitHub,
pydantic,
pythonOlder,
setuptools,
tenacity,
}:
buildPythonPackage rec {
pname = "yolink-api";
version = "0.4.4";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "YoSmart-Inc";
repo = "yolink-api";
rev = "refs/tags/v${version}";
hash = "sha256-yRxv3Itj+SkLtj5rErOzJoxj0JhsAWrdi0DucKZKKIU=";
};
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/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}