pkgs/watchmap: init at 2021-05-16

This commit is contained in:
Aaron Bieber 2024-06-13 10:30:40 -06:00
parent 8e81f638a5
commit c326ae2859
No known key found for this signature in database
2 changed files with 45 additions and 0 deletions

View File

@ -313,6 +313,9 @@
precursorupdater = spkgs.python3Packages.callPackage ./pkgs/precursorupdater.nix {
inherit spkgs;
};
watchmap = spkgs.python3Packages.callPackage ./pkgs/watchmap.nix {
inherit spkgs;
};
rtlamr2mqtt = spkgs.python3Packages.callPackage ./pkgs/rtlamr2mqtt.nix {
inherit spkgs;
};

42
pkgs/watchmap.nix Normal file
View File

@ -0,0 +1,42 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, matplotlib
, folium
, datetime
, gpsbabel
, ...
}:
buildPythonPackage {
pname = "watchmap";
version = "2021-05-16";
pyproject = false;
doBuild = false;
propagatedBuildInputs = [
folium
matplotlib
datetime
gpsbabel
];
src = fetchFromGitHub {
owner = "bunnie";
repo = "watchmap";
hash = "sha256-WSFUVn3SB7WS8hiJxlZSWXLnx2K7gJAufYGmvvC5PBQ=";
rev = "5bab6e5107554bc76a51ccd6b5190764a0633097";
};
installPhase = ''
mkdir -p $out/bin
cp plot.py $out/bin/watchplot
'';
meta = with lib; {
description = "Tool to convert Garmin .fit files to a web map";
homepage = "https://github.com/bunnie/watchmap/";
license = licenses.gpl3;
maintainers = [ maintainers.qbit ];
};
}