python313Packages.withings-sync: 4.2.7 -> 5.3.0 (#470775)

This commit is contained in:
Fabian Affolter
2025-12-14 18:54:12 +00:00
committed by GitHub
@@ -3,38 +3,35 @@
buildPythonPackage,
fetchFromGitHub,
garth,
importlib-resources,
lxml,
poetry-core,
python-dotenv,
pythonOlder,
requests,
setuptools,
}:
buildPythonPackage rec {
pname = "withings-sync";
version = "4.2.7";
version = "5.3.0";
pyproject = true;
disabled = pythonOlder "3.10";
src = fetchFromGitHub {
owner = "jaroslawhartman";
repo = "withings-sync";
tag = "v${version}";
hash = "sha256-ySl2nRR8t7c3NhjgjSzLQ+hcJuh+kx5aoaVPJF56HR0=";
hash = "sha256-Q9zOXQIdl4jpCK6a5Xp4kZK67MqudX0thDAkRmdL3AQ=";
};
postPatch = ''
substituteInPlace setup.py \
substituteInPlace pyproject.toml \
--replace-fail "1.0.0.dev1" "${version}"
'';
pythonRelaxDeps = true;
build-system = [ setuptools ];
build-system = [ poetry-core ];
dependencies = [
garth
importlib-resources
lxml
python-dotenv
requests
@@ -45,7 +42,7 @@ buildPythonPackage rec {
meta = {
description = "Synchronisation of Withings weight";
homepage = "https://github.com/jaroslawhartman/withings-sync";
changelog = "https://github.com/jaroslawhartman/withings-sync/releases/tag/v${version}";
changelog = "https://github.com/jaroslawhartman/withings-sync/releases/tag/${src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
mainProgram = "withings-sync";