5e7c2d6cef
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
49 lines
971 B
Nix
49 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 ];
|
|
};
|
|
}
|