From 887f04e208e1dcc4bdbd9fbc3180a9ca9515e10e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sat, 20 Sep 2025 04:34:48 -0700 Subject: [PATCH] python3Packages.waterfurnace: modernize --- .../python-modules/waterfurnace/default.nix | 25 +++++++------------ 1 file changed, 9 insertions(+), 16 deletions(-) diff --git a/pkgs/development/python-modules/waterfurnace/default.nix b/pkgs/development/python-modules/waterfurnace/default.nix index 696506272078..04c15bf09326 100644 --- a/pkgs/development/python-modules/waterfurnace/default.nix +++ b/pkgs/development/python-modules/waterfurnace/default.nix @@ -3,19 +3,16 @@ buildPythonPackage, click, fetchFromGitHub, - mock, pytestCheckHook, requests, - pythonOlder, + setuptools, websocket-client, }: buildPythonPackage rec { pname = "waterfurnace"; version = "1.2.0"; - format = "setuptools"; - - disabled = pythonOlder "3.7"; + pyproject = true; src = fetchFromGitHub { owner = "sdague"; @@ -24,30 +21,26 @@ buildPythonPackage rec { sha256 = "sha256-lix8dU9PxlsXIzKNFuUJkd80cUYXfTXSnFLu1ULACkE="; }; - postPatch = '' - substituteInPlace setup.py \ - --replace "'pytest-runner'," "" - ''; + build-system = [ setuptools ]; - propagatedBuildInputs = [ + dependencies = [ click requests websocket-client ]; nativeCheckInputs = [ - mock pytestCheckHook ]; pythonImportsCheck = [ "waterfurnace" ]; - meta = with lib; { + meta = { description = "Python interface to waterfurnace geothermal systems"; - mainProgram = "waterfurnace-debug"; + mainProgram = "waterfurnace"; homepage = "https://github.com/sdague/waterfurnace"; - changelog = "https://github.com/sdague/waterfurnace/blob/v${version}/HISTORY.rst"; - license = with licenses; [ asl20 ]; - maintainers = with maintainers; [ fab ]; + changelog = "https://github.com/sdague/waterfurnace/blob/${src.tag}/HISTORY.rst"; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ fab ]; }; }