2022-08-11 01:40:19 +00:00
|
|
|
{ fetchFromGitHub
|
|
|
|
, lib
|
|
|
|
, stdenv
|
|
|
|
|
|
|
|
# Dependencies
|
|
|
|
, python3
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "gpx-reduce";
|
2022-12-02 18:06:53 +00:00
|
|
|
version = "unstable-2022-11-18";
|
2022-08-11 01:40:19 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Alezy80";
|
|
|
|
repo = "gpx_reduce";
|
2022-12-02 18:06:53 +00:00
|
|
|
rev = "2f6d6d006871dfb19a15718ed6c6717009705abc";
|
|
|
|
hash = "sha256-unmarEs4xs5OYZg6xEdxYU+eoZnyYwpPQ/+cxouDfqE=";
|
2022-08-11 01:40:19 +00:00
|
|
|
};
|
|
|
|
|
2022-12-02 18:06:53 +00:00
|
|
|
buildInputs = [ (python3.withPackages (p: with p; [ iso8601 lxml matplotlib numpy ])) ];
|
2022-08-11 01:40:19 +00:00
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
checkPhase = "python3 gpx_reduce.py --help > /dev/null";
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -D gpx_reduce.py $out/bin/gpx_reduce
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Script that removes unnecessary points from GPX files";
|
|
|
|
homepage = "https://github.com/Alezy80/gpx_reduce";
|
|
|
|
license = lib.licenses.gpl3Plus;
|
|
|
|
};
|
|
|
|
}
|