nur-packages

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

commit 8409303fd8a94fb31b2481b7309acce1d1fdba0b
parent 6cccf91c8b2c94115e247c14da14651e02b72ff1
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date:   Thu,  7 Apr 2022 22:46:33 +0300

Add polytiles

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

diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -340,6 +340,7 @@ lib.makeScope newScope ( osmosis = callPackage ./osm/osmosis { }; osmwalkthrough = callPackage ./osm/osmwalkthrough { }; phyghtmap = callPackage ./osm/phyghtmap { }; + polytiles = callPackage ./osm/polytiles { }; sdlmap = callPackage ./osm/sdlmap { }; smopy = callPackage ./osm/smopy { }; smrender = callPackage ./osm/smrender { diff --git a/pkgs/osm/polytiles/default.nix b/pkgs/osm/polytiles/default.nix @@ -0,0 +1,27 @@ +{ lib, fetchFromGitHub, python3Packages, sqlite }: + +python3Packages.buildPythonApplication rec { + pname = "polytiles"; + version = "2017-06-09"; + + src = fetchFromGitHub { + owner = "Zverik"; + repo = pname; + rev = "c0a057594de9041c7b3ac234a3590101e3825f2d"; + hash = "sha256-7rsMx8sQgl8cRiUncP3/mPne6ARj3K2FICU+frUeEUs="; + }; + + propagatedBuildInputs = with python3Packages; [ + psycopg2 + python-mapnik + shapely + sqlite + ]; + + meta = with lib; { + description = "A script to render tiles for an area with mapnik"; + inherit (src.meta) homepage; + license = licenses.wtfpl; + maintainers = [ maintainers.sikmir ]; + }; +}