mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-17 02:34:05 +00:00
48 lines
979 B
Nix
48 lines
979 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
curl-cffi,
|
|
fetchFromGitHub,
|
|
garth,
|
|
pdm-backend,
|
|
requests,
|
|
ua-generator,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "garminconnect";
|
|
version = "0.3.5";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "cyberjunky";
|
|
repo = "python-garminconnect";
|
|
tag = finalAttrs.version;
|
|
hash = "sha256-ncQuZq9W94SGoxoLHhyuEW8qMOPqvCCTIi+56k7vOG8=";
|
|
};
|
|
|
|
pythonRelaxDeps = [ "garth" ];
|
|
|
|
build-system = [ pdm-backend ];
|
|
|
|
dependencies = [
|
|
curl-cffi
|
|
garth
|
|
requests
|
|
ua-generator
|
|
];
|
|
|
|
# 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/${finalAttrs.src.tag}";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
};
|
|
})
|