blob: dc6fbd48cc90a74e40a9527ce3be08da6270017d (
plain)
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
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
garth,
pdm-backend,
requests,
withings-sync,
}:
buildPythonPackage rec {
pname = "garminconnect";
version = "0.2.38";
pyproject = true;
src = fetchFromGitHub {
owner = "cyberjunky";
repo = "python-garminconnect";
tag = version;
hash = "sha256-d2R/ir/dxFnC4ZjLBHP+mm9JMtfPZ9VMxSRv35rE+CU=";
};
pythonRelaxDeps = [
"garth"
"withings-sync"
];
build-system = [ pdm-backend ];
dependencies = [
garth
requests
withings-sync
];
# Tests require a token
doCheck = false;
pythonImportsCheck = [ "garminconnect" ];
meta = {
description = "Garmin Connect Python API wrapper";
homepage = "https://github.com/cyberjunky/python-garminconnect";
changelog = "https://github.com/cyberjunky/python-garminconnect/releases/tag/${src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}
|