depot/third_party/nixpkgs/pkgs/development/python-modules/garminconnect/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

46 lines
955 B
Nix

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