about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/withings-sync/default.nix
blob: 6200082bc9fd1b6265b0e486583961908e6646d1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
{ lib
, buildPythonPackage
, fetchFromGitHub
, garth
, lxml
, python-dotenv
, pythonOlder
, requests
, setuptools
}:

buildPythonPackage rec {
  pname = "withings-sync";
  version = "4.2.4";
  pyproject = true;

  disabled = pythonOlder "3.10";

  src = fetchFromGitHub {
    owner = "jaroslawhartman";
    repo = "withings-sync";
    rev = "refs/tags/v.${version}";
    hash = "sha256-nFYEtQob3x6APWDKCVP5p+qkKmgvXIcmegp/6ZRbDQA=";
  };

  nativeBuildInputs = [
    setuptools
  ];

  propagatedBuildInputs = [
    garth
    lxml
    python-dotenv
    requests
  ];

  pythonImportsCheck = [
    "withings_sync"
  ];

  meta = with lib; {
    description = "Synchronisation of Withings weight";
    mainProgram = "withings-sync";
    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 ];
  };
}