mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-15 01:33:50 +00:00
Diff: https://github.com/cyberjunky/ha-garmin/compare/v0.1.22...v0.1.23 Changelog: https://github.com/cyberjunky/ha-garmin/releases/tag/v0.1.23
53 lines
1.1 KiB
Nix
53 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
setuptools,
|
|
curl-cffi,
|
|
pydantic,
|
|
pytest-asyncio,
|
|
pytestCheckHook,
|
|
requests,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "ha-garmin";
|
|
version = "0.1.23";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "cyberjunky";
|
|
repo = "ha-garmin";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-0x7+pABt0i9QFty/i8IeU2CLmDUQiw16pYZ1Wr7CARI=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
curl-cffi
|
|
pydantic
|
|
requests
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytest-asyncio
|
|
pytestCheckHook
|
|
];
|
|
|
|
disabledTests = [
|
|
# Upstream test relies on a field not present in the test fixture
|
|
"test_fetch_core_data_sleep_fields"
|
|
];
|
|
|
|
pythonImportsCheck = [ "ha_garmin" ];
|
|
|
|
meta = {
|
|
description = "Python client for Garmin Connect API, designed for Home Assistant integration";
|
|
homepage = "https://github.com/cyberjunky/ha-garmin";
|
|
changelog = "https://github.com/cyberjunky/ha-garmin/releases/tag/${finalAttrs.src.tag}";
|
|
license = lib.licenses.mit;
|
|
maintainers = [ lib.maintainers.jamiemagee ];
|
|
};
|
|
})
|