python3Packages.fitparse: init at 1.2.0; garmin-grafana: init at 0.3.0 (#403107)

This commit is contained in:
Sandro
2025-12-08 18:33:18 +00:00
committed by GitHub
3 changed files with 96 additions and 0 deletions
@@ -0,0 +1,54 @@
{
fetchFromGitHub,
python3Packages,
lib,
}:
python3Packages.buildPythonPackage rec {
pname = "garmin-grafana";
version = "0.3.0";
pyproject = true;
src = fetchFromGitHub {
owner = "arpanghosh8453";
repo = "garmin-grafana";
tag = "v${version}";
hash = "sha256-nuVT6LK9KIs/FwUbdfI4xpKru4jfAyj1/vmk7ji43zk=";
};
build-system = with python3Packages; [
setuptools
];
dependencies = with python3Packages; [
fitparse
garminconnect
influxdb
influxdb3-python
python-dotenv
];
doCheck = false; # there are no tests
dontCheckRuntimeDeps = true;
postInstall = ''
install -Dt $out/share/grafana-dashboards -m644 Grafana_Dashboard/Garmin-Grafana-Dashboard.json
'';
passthru.grafana-dashboard = "${placeholder "out"}/share/grafana-dashboards/Garmin-Grafana-Dashboard.json";
meta = {
description = "Export Garmin data to InfluxDB";
longDescription = ''
A Python script to fetch Garmin health data and populate that in an InfluxDB database,
for visualizing long-term health trends with Grafana
'';
homepage = "https://github.com/arpanghosh8453/garmin-grafana";
changelog = "https://github.com/arpanghosh8453/garmin-grafana/releases/tag/v${version}";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ aciceri ];
mainProgram = "garmin-fetch";
platforms = lib.platforms.linux;
};
}
@@ -0,0 +1,40 @@
{
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
lib,
setuptools,
}:
buildPythonPackage rec {
pname = "fitparse";
version = "1.2.0";
pyproject = true;
build-system = [ setuptools ];
src = fetchFromGitHub {
owner = "dtcooper";
repo = "python-fitparse";
tag = "v${version}";
hash = "sha256-aO4djG9omc0jogalLitvT5i58cYKXqtvJ5WGBiCv448=";
};
nativeCheckInputs = [
pytestCheckHook
];
disabledTests = [
"test_utils"
];
pythonImportsCheck = [
"fitparse"
];
meta = {
description = "Python library to parse ANT/Garmin .FIT files";
homepage = "https://pythonhosted.org/fitparse/";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ aciceri ];
};
}
+2
View File
@@ -5396,6 +5396,8 @@ self: super: with self; {
fitfile = callPackage ../development/python-modules/fitfile { };
fitparse = callPackage ../development/python-modules/fitparse { };
fivem-api = callPackage ../development/python-modules/fivem-api { };
fixerio = callPackage ../development/python-modules/fixerio { };