commit 87b275b12f9855b09dccccb513b82ae1a68f5513
parent 3926624eb22ad7152877c8a91c6db6f003692a1a
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date: Tue, 17 Sep 2024 00:10:31 +0400
Add fitdecode
Diffstat:
2 files changed, 29 insertions(+), 0 deletions(-)
diff --git a/pkgs/default.nix b/pkgs/default.nix
@@ -266,6 +266,7 @@ lib.makeScope newScope (
### GPX
cmpgpx = callPackage ./gpx/cmpgpx { };
+ fitdecode = callPackage ./gpx/fitdecode { };
garta = callPackage ./gpx/garta { };
geojson2dm = callPackage ./gpx/geojson2dm { };
gps-whatsnew = callPackage ./gpx/gps-whatsnew { };
diff --git a/pkgs/gpx/fitdecode/default.nix b/pkgs/gpx/fitdecode/default.nix
@@ -0,0 +1,28 @@
+{
+ lib,
+ fetchFromGitHub,
+ python3Packages,
+}:
+
+python3Packages.buildPythonPackage rec {
+ pname = "fitdecode";
+ version = "0.10.0";
+
+ src = fetchFromGitHub {
+ owner = "polyvertex";
+ repo = "fitdecode";
+ rev = "v${version}";
+ hash = "sha256-pW1PgJGqFL2reOYYfpGnQ4WoYFKGMNY8iQJzyHYOly8=";
+ };
+
+ nativeCheckInputs = with python3Packages; [
+ pytestCheckHook
+ ];
+
+ meta = {
+ description = "FIT file parser and decoder";
+ homepage = "https://github.com/polyvertex/fitdecode";
+ license = lib.licenses.mit;
+ maintainers = [ lib.maintainers.sikmir ];
+ };
+}