depot/third_party/nixpkgs/pkgs/development/python-modules/yolink-api/default.nix
Default email 4d5a95770c Project import generated by Copybara.
GitOrigin-RevId: 3c5319ad3aa51551182ac82ea17ab1c6b0f0df89
2023-03-04 15:14:45 +03:00

51 lines
952 B
Nix

{ lib
, aiohttp
, buildPythonPackage
, fetchFromGitHub
, asyncio-mqtt
, pydantic
, pythonOlder
, setuptools
, tenacity
}:
buildPythonPackage rec {
pname = "yolink-api";
version = "0.2.8";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "YoSmart-Inc";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-dcuP2VPAp3Na1o9DV3bPejCrtaIxvt+g/vRaQYqI67Q=";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
aiohttp
asyncio-mqtt
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 ];
};
}