Diff: https://github.com/cyberjunky/python-garminconnect/compare/refs/tags/0.2.7...0.2.8 Changelog: https://github.com/cyberjunky/python-garminconnect/releases/tag/0.2.8
50 lines
971 B
Nix
50 lines
971 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, cloudscraper
|
|
, fetchFromGitHub
|
|
, garth
|
|
, pdm-backend
|
|
, pythonOlder
|
|
, requests
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "garminconnect";
|
|
version = "0.2.8";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "cyberjunky";
|
|
repo = "python-garminconnect";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-jNDFSA6Mz0+7UhEVrCKcKDEX3B7yk6igBf59A6YlW2M=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
pdm-backend
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
cloudscraper
|
|
garth
|
|
requests
|
|
];
|
|
|
|
# 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 ];
|
|
};
|
|
}
|