Martin Weinelt
2026-06-04 16:31:33 +02:00
parent e60c0edbf9
commit 8d95a66a60
@@ -3,29 +3,27 @@
buildPythonPackage,
fetchFromGitHub,
setuptools,
pytz,
requests,
paho-mqtt,
aiohttp,
aiomqtt,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "yoto-api";
version = "2.3.0";
version = "3.1.5";
pyproject = true;
src = fetchFromGitHub {
owner = "cdnninja";
repo = "yoto_api";
tag = "v${version}";
hash = "sha256-kL3Ry3sRyDTKlhVUQ8rOCm2G8JkFZCmTwoInR6og73s=";
tag = "v${finalAttrs.version}";
hash = "sha256-Pe1bxpheFBbUuTGL5ucQc5OZrk4HgLTtu1ORWUDm4+M=";
};
build-system = [ setuptools ];
dependencies = [
pytz
requests
paho-mqtt
aiohttp
aiomqtt
];
# All tests require access to and authentication with the Yoto API (api.yotoplay.com).
@@ -34,11 +32,11 @@ buildPythonPackage rec {
pythonImportsCheck = [ "yoto_api" ];
meta = {
changelog = "https://github.com/cdnninja/yoto_api/releases/tag/${src.tag}";
changelog = "https://github.com/cdnninja/yoto_api/releases/tag/${finalAttrs.src.tag}";
homepage = "https://github.com/cdnninja/yoto_api";
platforms = lib.platforms.unix;
maintainers = with lib.maintainers; [ seberm ];
license = lib.licenses.mit;
description = "Python package that makes it a bit easier to work with the yoto play API";
};
}
})