nixpkgs/pkgs/development/python-modules/yolink-api/default.nix

45 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 ];
};
}