nur-packages

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

commit 4b43b7699e68b73335a2e30f2301b9f72d42331a
parent 257730ef77358708c4c3dc973adf0fc0d3b4f27c
Author: Nikolay Korotkiy <sikmir@gmail.com>
Date:   Thu, 18 Mar 2021 20:20:24 +0300

Add geotiler

Diffstat:
Mpkgs/default.nix | 1+
Apkgs/development/python-modules/geotiler/default.nix | 32++++++++++++++++++++++++++++++++
2 files changed, 33 insertions(+), 0 deletions(-)

diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -104,6 +104,7 @@ lib.makeScope newScope ( bson = callPackage ./development/python-modules/bson { }; cheetah3 = callPackage ./development/python-modules/cheetah3 { }; click-6-7 = callPackage ./development/python-modules/click { }; + geotiler = callPackage ./development/python-modules/geotiler { }; gpxelevations = callPackage ./development/python-modules/gpxelevations { }; jsonseq = callPackage ./development/python-modules/jsonseq { }; mercantile = callPackage ./development/python-modules/mercantile { }; diff --git a/pkgs/development/python-modules/geotiler/default.nix b/pkgs/development/python-modules/geotiler/default.nix @@ -0,0 +1,32 @@ +{ lib, fetchFromGitHub, python3Packages }: + +python3Packages.buildPythonPackage rec { + pname = "geotiler"; + version = "0.14.4"; + + src = fetchFromGitHub { + owner = "wrobell"; + repo = "geotiler"; + rev = "geotiler-${version}"; + sha256 = "1b0cvf1dq9vdwwyki1qnmr8mmhrj3sjybbil6p34f0i634pgnk1q"; + }; + + postPatch = '' + sed -i '/setuptools_git/d' setup.py + ''; + + propagatedBuildInputs = with python3Packages; [ aiohttp cytoolz numpy pillow ]; + + checkInputs = with python3Packages; [ pytestCheckHook pytest-cov ]; + + postInstall = '' + cp -r geotiler/source $out/lib/${python3Packages.python.libPrefix}/site-packages/geotiler + ''; + + meta = with lib; { + description = "GeoTiler is a library to create map using tiles from a map provider"; + homepage = "https://wrobell.dcmod.org/geotiler"; + license = licenses.gpl3Plus; + maintainers = [ maintainers.sikmir ]; + }; +}