From 80c5247578d4b85e75e9345a4de36249d552971b Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 14 Dec 2025 16:50:36 +0100 Subject: [PATCH] python313Packages.withings-sync: 4.2.7 -> 5.3.0 Changelog: https://github.com/jaroslawhartman/withings-sync/releases/tag/v5.3.0 --- .../python-modules/withings-sync/default.nix | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/pkgs/development/python-modules/withings-sync/default.nix b/pkgs/development/python-modules/withings-sync/default.nix index 204ddcdf86d3..210033536aeb 100644 --- a/pkgs/development/python-modules/withings-sync/default.nix +++ b/pkgs/development/python-modules/withings-sync/default.nix @@ -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";