nur-packages

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

commit fc60dc2ec1d09d81c36051dc34d5ececcb483ca8
parent 52301168d3df056d9c8511abfe3709133267f79d
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date:   Thu, 31 Mar 2022 00:12:40 +0300

Add osm2geojson

Diffstat:
Mpkgs/default.nix | 1+
Apkgs/osm/osm2geojson/default.nix | 28++++++++++++++++++++++++++++
2 files changed, 29 insertions(+), 0 deletions(-)

diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -334,6 +334,7 @@ lib.makeScope newScope ( osm-area-tools = callPackage ./osm/osm-area-tools { }; osm-python-tools = callPackage ./osm/osm-python-tools { }; osm-tags-transform = callPackage ./osm/osm-tags-transform { }; + osm2geojson = callPackage ./osm/osm2geojson { }; osmcoastline = callPackage ./osm/osmcoastline { }; osmosis = callPackage ./osm/osmosis { }; osmwalkthrough = callPackage ./osm/osmwalkthrough { }; diff --git a/pkgs/osm/osm2geojson/default.nix b/pkgs/osm/osm2geojson/default.nix @@ -0,0 +1,28 @@ +{ lib, fetchFromGitHub, python3Packages }: + +python3Packages.buildPythonApplication rec { + pname = "osm2geojson"; + version = "0.1.33"; + + src = fetchFromGitHub { + owner = "aspectumapp"; + repo = pname; + rev = "068b83afe19cff1ae15b9efc2a9ff5a9be8928e7"; + sha256 = "sha256-9+xB/fd97HtnzdkJ2BawVW9AqDyArWUv6H1SZ7a8gkw="; + fetchSubmodules = true; + }; + + propagatedBuildInputs = with python3Packages; [ + shapely + requests + ]; + + doCheck = false; + + meta = with lib; { + description = "Convert OSM and Overpass JSON to GeoJSON"; + inherit (src.meta) homepage; + license = licenses.mit; + maintainers = [ maintainers.sikmir ]; + }; +}