From 8d95a66a60e4aaaa1f1942e4a7647884a8b8cdf3 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Wed, 3 Jun 2026 04:29:05 +0200 Subject: [PATCH] python3Packages.yoto-api: 2.3.0 -> 3.1.5 https://github.com/cdnninja/yoto_api/releases/tag/v2.4.0 https://github.com/cdnninja/yoto_api/releases/tag/v2.5.0 https://github.com/cdnninja/yoto_api/releases/tag/v3.0.0 https://github.com/cdnninja/yoto_api/releases/tag/v3.1.0 https://github.com/cdnninja/yoto_api/releases/tag/v3.1.2 https://github.com/cdnninja/yoto_api/releases/tag/v3.1.3 https://github.com/cdnninja/yoto_api/releases/tag/v3.1.4 https://github.com/cdnninja/yoto_api/releases/tag/v3.1.5 --- .../python-modules/yoto-api/default.nix | 22 +++++++++---------- 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/pkgs/development/python-modules/yoto-api/default.nix b/pkgs/development/python-modules/yoto-api/default.nix index 219b104cf77e..a907a825cd66 100644 --- a/pkgs/development/python-modules/yoto-api/default.nix +++ b/pkgs/development/python-modules/yoto-api/default.nix @@ -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"; }; -} +})