blob: 1d1585521b23370374290f6a65b56733ec13f62c (
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
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
garth,
pdm-backend,
pythonOlder,
requests,
withings-sync,
}:
buildPythonPackage rec {
pname = "garminconnect";
version = "0.2.19";
pyproject = true;
disabled = pythonOlder "3.10";
src = fetchFromGitHub {
owner = "cyberjunky";
repo = "python-garminconnect";
rev = "refs/tags/${version}";
hash = "sha256-v3Z6cUHqE52BJUgfyWMojwdbxWIEyNR8c/oNS9QEFeA=";
};
build-system = [ pdm-backend ];
dependencies = [
garth
requests
withings-sync
];
# Tests require a token
doCheck = false;
pythonImportsCheck = [ "garminconnect" ];
meta = with lib; {
description = "Garmin Connect Python API wrapper";
homepage = "https://github.com/cyberjunky/python-garminconnect";
changelog = "https://github.com/cyberjunky/python-garminconnect/releases/tag/${version}";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}
|