python3Packages.waterfurnace: modernize

This commit is contained in:
Robert Schütz
2025-09-20 04:36:33 -07:00
parent c3f8bcfd74
commit 887f04e208
@@ -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 ];
};
}