mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 13:43:22 +00:00
adafebe352
Diff: https://github.com/YoSmart-Inc/yolink-api/compare/refs/tags/v0.1.0...v0.1.5 Changelog: https://github.com/YoSmart-Inc/yolink-api/releases/tag/v0.1.5
45 lines
865 B
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 ];
|
|
};
|
|
}
|