nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

commit 210c9104e835daaba5f2582017633f2a95ea5627
parent a542f49cd0c2dc42a60f1e6addc8a4cac27acc6f
Author: Nikolay Korotkiy <sikmir@gmail.com>
Date:   Mon,  6 Dec 2021 21:50:41 +0300

Add gpx-converter

Diffstat:
Mpkgs/default.nix | 1+
Apkgs/gpx/gpx-converter/default.nix | 24++++++++++++++++++++++++
2 files changed, 25 insertions(+), 0 deletions(-)

diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -201,6 +201,7 @@ lib.makeScope newScope ( gps-whatsnew = callPackage ./gpx/gps-whatsnew { }; gpx-animator = callPackage ./gpx/gpx-animator { }; gpx-cmd-tools = callPackage ./gpx/gpx-cmd-tools { }; + gpx-converter = callPackage ./gpx/gpx-converter { }; gpx-interpolate = callPackage ./gpx/gpx-interpolate { }; gpx-layer = perlPackages.callPackage ./gpx/gpx-layer { }; gpx2yaml = callPackage ./gpx/gpx2yaml { }; diff --git a/pkgs/gpx/gpx-converter/default.nix b/pkgs/gpx/gpx-converter/default.nix @@ -0,0 +1,24 @@ +{ lib, fetchFromGitHub, python3Packages }: + +python3Packages.buildPythonApplication rec { + pname = "gpx-converter"; + version = "2021-11-19"; + + src = fetchFromGitHub { + owner = "nidhaloff"; + repo = pname; + rev = "77790e9258ce845daf640f25614cd2e51cef7eb6"; + hash = "sha256-T7CxFeWoK7lR0oL4kIQoKqirw5oLnh6+SBC5fcnaANc="; + }; + + propagatedBuildInputs = with python3Packages; [ gpxpy numpy pandas ]; + + checkInputs = with python3Packages; [ pytestCheckHook pytest-runner ]; + + meta = with lib; { + description = "Python package for manipulating gpx files and easily convert gpx to other different formats"; + inherit (src.meta) homepage; + license = licenses.mit; + maintainers = [ maintainers.sikmir ]; + }; +}