depot/third_party/nixpkgs/pkgs/development/python-modules/garminconnect/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

46 lines
955 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
garth,
pdm-backend,
pythonOlder,
requests,
withings-sync,
}:
buildPythonPackage rec {
pname = "garminconnect";
version = "0.2.19";
pyproject = true;
disabled = pythonOlder "3.10";
src = fetchFromGitHub {
owner = "cyberjunky";
repo = "python-garminconnect";
rev = "refs/tags/${version}";
hash = "sha256-v3Z6cUHqE52BJUgfyWMojwdbxWIEyNR8c/oNS9QEFeA=";
};
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 ];
};
}