nur-packages

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

commit 5f9994f1005992569bbf93418cf4b8c3bb1cc952
parent 5768f6212da0bca7ee6a00deb82f6e6541499549
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date:   Tue, 18 Jan 2022 18:12:27 +0300

Add pmtiles

Diffstat:
Mpkgs/default.nix | 1+
Apkgs/geospatial/pmtiles/default.nix | 22++++++++++++++++++++++
2 files changed, 23 insertions(+), 0 deletions(-)

diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -175,6 +175,7 @@ lib.makeScope newScope ( mbtiles2osmand = callPackage ./geospatial/mbtiles2osmand { }; mbutiles = callPackage ./geospatial/mbutiles { }; orbisgis-bin = callPackage ./geospatial/orbisgis/bin.nix { jre = pkgs.jre8; }; + pmtiles = callPackage ./geospatial/pmtiles { }; polyvectorization = libsForQt5.callPackage ./geospatial/polyvectorization { }; py-staticmaps = callPackage ./geospatial/py-staticmaps { }; qgis-bin = callPackage ./geospatial/qgis/bin.nix { }; diff --git a/pkgs/geospatial/pmtiles/default.nix b/pkgs/geospatial/pmtiles/default.nix @@ -0,0 +1,22 @@ +{ lib, fetchFromGitHub, python3Packages }: + +python3Packages.buildPythonApplication rec { + pname = "pmtiles"; + version = "2021-12-29"; + + src = fetchFromGitHub { + owner = "protomaps"; + repo = "PMTiles"; + rev = "fb4aa544d98654b575c2d694ddaeb9384b2a3f77"; + hash = "sha256-AWaKlJGjqMM3mRx2q2YD6X5DHYEoV9RCuszh36QdXX0="; + }; + + sourceRoot = "${src.name}/python"; + + meta = with lib; { + description = "Library and utilities to write and read PMTiles files - cloud-optimized archives of map tiles"; + inherit (src.meta) homepage; + license = licenses.bsd3; + maintainers = [ maintainers.sikmir ]; + }; +}