python313Packages.pyvicare: modernize

This commit is contained in:
Fabian Affolter
2026-01-26 11:30:53 +01:00
parent 08d356e597
commit 7c13439e11
@@ -10,7 +10,7 @@
pytestCheckHook,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "pyvicare";
version = "2.56.0";
pyproject = true;
@@ -18,13 +18,13 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "openviess";
repo = "PyViCare";
tag = version;
tag = finalAttrs.version;
hash = "sha256-DRCetTR7sFaShau3in0548FoR+rOaG28SGqfAjAVsn4=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail 'version = "0.1.0"' 'version = "${version}"'
--replace-fail 'version = "0.1.0"' 'version = "${finalAttrs.version}"'
'';
build-system = [ poetry-core ];
@@ -43,10 +43,10 @@ buildPythonPackage rec {
pythonImportsCheck = [ "PyViCare" ];
meta = {
changelog = "https://github.com/openviess/PyViCare/releases/tag/${src.tag}";
description = "Python Library to access Viessmann ViCare API";
homepage = "https://github.com/somm15/PyViCare";
license = with lib.licenses; [ asl20 ];
changelog = "https://github.com/openviess/PyViCare/releases/tag/${finalAttrs.version}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ fab ];
};
}
})