From 7d113673b780eb1e67b4416ad497f3b3175754ed Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 20 Jun 2025 09:01:35 +0200 Subject: [PATCH] python313Packages.python-mystrom: 2.2.0 -> 2.4.0 Diff: https://github.com/home-assistant-ecosystem/python-mystrom/compare/refs/tags/2.2.0...refs/tags/2.4.0 Changelog: https://github.com/home-assistant-ecosystem/python-mystrom/releases/tag/2.4.0 --- .../python-modules/python-mystrom/default.nix | 29 ++++++++++--------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/pkgs/development/python-modules/python-mystrom/default.nix b/pkgs/development/python-modules/python-mystrom/default.nix index ac95067f25e7..dc6ed950278b 100644 --- a/pkgs/development/python-modules/python-mystrom/default.nix +++ b/pkgs/development/python-modules/python-mystrom/default.nix @@ -1,28 +1,31 @@ { lib, - buildPythonPackage, - fetchPypi, aiohttp, + buildPythonPackage, click, + fetchFromGitHub, + poetry-core, requests, - setuptools, }: buildPythonPackage rec { pname = "python-mystrom"; - version = "2.2.0"; - format = "setuptools"; + version = "2.4.0"; + pyproject = true; - src = fetchPypi { - inherit pname version; - hash = "sha256-VFsTA/isBw0H7qXQhOX6K2p1QcVxO7q5TIzf8YivVgc="; + src = fetchFromGitHub { + owner = "home-assistant-ecosystem"; + repo = "python-mystrom"; + tag = version; + hash = "sha256-zG1T+wC0GznNwP3fi8GKtY9Csq9hyX0vw+h7ARVPQFQ="; }; - propagatedBuildInputs = [ + build-system = [ poetry-core ]; + + dependencies = [ aiohttp click requests - setuptools ]; # no tests are present @@ -36,14 +39,14 @@ buildPythonPackage rec { meta = with lib; { description = "Python API client for interacting with myStrom devices"; - mainProgram = "mystrom"; longDescription = '' Asynchronous Python API client for interacting with myStrom devices. There is support for bulbs, motion sensors, plugs and buttons. ''; homepage = "https://github.com/home-assistant-ecosystem/python-mystrom"; - changelog = "https://github.com/home-assistant-ecosystem/python-mystrom/releases/tag/${version}"; - license = with licenses; [ mit ]; + changelog = "https://github.com/home-assistant-ecosystem/python-mystrom/releases/tag/${src.tag}"; + license = licenses.mit; maintainers = with maintainers; [ fab ]; + mainProgram = "mystrom"; }; }