2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
garth,
|
|
|
|
lxml,
|
|
|
|
python-dotenv,
|
|
|
|
pythonOlder,
|
|
|
|
requests,
|
|
|
|
setuptools,
|
2023-11-16 04:20:00 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "withings-sync";
|
2024-01-25 14:12:00 +00:00
|
|
|
version = "4.2.4";
|
2023-11-16 04:20:00 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.10";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jaroslawhartman";
|
|
|
|
repo = "withings-sync";
|
2024-01-25 14:12:00 +00:00
|
|
|
rev = "refs/tags/v.${version}";
|
|
|
|
hash = "sha256-nFYEtQob3x6APWDKCVP5p+qkKmgvXIcmegp/6ZRbDQA=";
|
2023-11-16 04:20:00 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ setuptools ];
|
2023-11-16 04:20:00 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
garth
|
|
|
|
lxml
|
2024-01-25 14:12:00 +00:00
|
|
|
python-dotenv
|
2023-11-16 04:20:00 +00:00
|
|
|
requests
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "withings_sync" ];
|
2023-11-16 04:20:00 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Synchronisation of Withings weight";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "withings-sync";
|
2023-11-16 04:20:00 +00:00
|
|
|
homepage = "https://github.com/jaroslawhartman/withings-sync";
|
|
|
|
changelog = "https://github.com/jaroslawhartman/withings-sync/releases/tag/v${version}";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|