567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
49 lines
949 B
Nix
49 lines
949 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
garth,
|
|
pdm-backend,
|
|
requests,
|
|
withings-sync,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "garminconnect";
|
|
version = "0.2.36";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "cyberjunky";
|
|
repo = "python-garminconnect";
|
|
tag = version;
|
|
hash = "sha256-jbCp4R3Pg9idtIw5blEprf1wdewceA8YB62yht58jLI=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|