From 45e82e61704aa28f2f6267f57f62dfe7fbb32f3d Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Wed, 3 Jun 2026 04:26:10 +0200 Subject: [PATCH] python3Packages.ultraheat-api: 0.5.7 -> 0.6.0 https://github.com/vpathuis/ultraheat/releases/tag/v0.6.0 --- .../python-modules/ultraheat-api/default.nix | 31 +++++++++++-------- 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/pkgs/development/python-modules/ultraheat-api/default.nix b/pkgs/development/python-modules/ultraheat-api/default.nix index 4ac8ac49d2c0..638c63d9c90c 100644 --- a/pkgs/development/python-modules/ultraheat-api/default.nix +++ b/pkgs/development/python-modules/ultraheat-api/default.nix @@ -1,32 +1,37 @@ { lib, buildPythonPackage, - fetchPypi, - pyserial, + fetchFromGitHub, + serialx, + setuptools, + pytestCheckHook, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "ultraheat-api"; - version = "0.5.7"; - format = "setuptools"; + version = "0.6.0"; + pyproject = true; - src = fetchPypi { - pname = "ultraheat_api"; - inherit version; - hash = "sha256-rRQTjV9hyUawMaXBgUx/d6pQjM8ffjcFJE2x08Cf4Gw="; + src = fetchFromGitHub { + owner = "vpathuis"; + repo = "ultraheat"; + tag = "v${finalAttrs.version}"; + hash = "sha256-Mw2BEm98FqD/bggABJu8jftwyMEik0+xtKHONoFVxhw="; }; - propagatedBuildInputs = [ pyserial ]; + build-system = [ setuptools ]; - # Source is not tagged, only PyPI releases - doCheck = false; + dependencies = [ serialx ]; + + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "ultraheat_api" ]; meta = { + changelog = "https://github.com/vpathuis/ultraheat/releases/tag/${finalAttrs.src.tag}"; description = "Module for working with data from Landis+Gyr Ultraheat heat meter unit"; homepage = "https://github.com/vpathuis/uh50"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ fab ]; }; -} +})