mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 19:55:41 +03:00

Diff: https://github.com/cyberjunky/python-garminconnect/compare/refs/tags/0.2.25...0.2.26 Changelog: https://github.com/cyberjunky/python-garminconnect/releases/tag/0.2.26
51 lines
1,000 B
Nix
51 lines
1,000 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
garth,
|
|
pdm-backend,
|
|
pythonOlder,
|
|
requests,
|
|
withings-sync,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "garminconnect";
|
|
version = "0.2.26";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.10";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "cyberjunky";
|
|
repo = "python-garminconnect";
|
|
tag = version;
|
|
hash = "sha256-Tvou4GLOjn+ZJvY8fSpi7gspXl16SsELBUCwcZrU8HI=";
|
|
};
|
|
|
|
pythonRelaxDeps = [
|
|
"garth"
|
|
"withings-sync"
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|