depot/third_party/nixpkgs/pkgs/development/python-modules/yolink-api/default.nix
Default email 23b612e36f Project import generated by Copybara.
GitOrigin-RevId: ae5c332cbb5827f6b1f02572496b141021de335f
2024-01-25 23:12:00 +09:00

51 lines
942 B
Nix

{ lib
, aiohttp
, aiomqtt
, buildPythonPackage
, fetchFromGitHub
, pydantic
, pythonOlder
, setuptools
, tenacity
}:
buildPythonPackage rec {
pname = "yolink-api";
version = "0.3.6";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "YoSmart-Inc";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-KqQUaPac0nv8L3mrGn+nlzlB6mzqa5uMAceHlVKS1Ew=";
};
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 ];
};
}