1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, garth
5, lxml
6, pythonOlder
7, requests
8, setuptools
9, wheel
10}:
11
12buildPythonPackage rec {
13 pname = "withings-sync";
14 version = "4.2.1";
15 pyproject = true;
16
17 disabled = pythonOlder "3.10";
18
19 src = fetchFromGitHub {
20 owner = "jaroslawhartman";
21 repo = "withings-sync";
22 rev = "refs/tags/v${version}";
23 hash = "sha256-6igjUmgIA077/1SQMt10tRpnLVKxGFNJN1GeLhQLROg=";
24 };
25
26 nativeBuildInputs = [
27 setuptools
28 wheel
29 ];
30
31 propagatedBuildInputs = [
32 garth
33 lxml
34 requests
35 ];
36
37 pythonImportsCheck = [
38 "withings_sync"
39 ];
40
41 meta = with lib; {
42 description = "Synchronisation of Withings weight";
43 homepage = "https://github.com/jaroslawhartman/withings-sync";
44 changelog = "https://github.com/jaroslawhartman/withings-sync/releases/tag/v${version}";
45 license = licenses.mit;
46 maintainers = with maintainers; [ fab ];
47 };
48}