pkgs/watchmap: init at 2021-05-16
This commit is contained in:
parent
8e81f638a5
commit
c326ae2859
@ -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
42
pkgs/watchmap.nix
Normal 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 ];
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user