commit 281813f993a0e2302fa6279f588c662a20442132 parent c5c38c6ecb395d224616db41fbe395667e45b128 Author: Nikolay Korotkiy <sikmir@gmail.com> Date: Sat, 31 Jul 2021 22:39:29 +0300 Add contextily Diffstat:
M | pkgs/default.nix | | | 1 | + |
A | pkgs/development/python-modules/contextily/default.nix | | | 33 | +++++++++++++++++++++++++++++++++ |
2 files changed, 34 insertions(+), 0 deletions(-)
diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -92,6 +92,7 @@ lib.makeScope newScope ( cjkwrap = callPackage ./development/python-modules/cjkwrap { }; bson = callPackage ./development/python-modules/bson { }; click-6-7 = callPackage ./development/python-modules/click { }; + contextily = callPackage ./development/python-modules/contextily { }; geotiler = callPackage ./development/python-modules/geotiler { }; gpxelevations = callPackage ./development/python-modules/gpxelevations { }; jsonseq = callPackage ./development/python-modules/jsonseq { }; diff --git a/pkgs/development/python-modules/contextily/default.nix b/pkgs/development/python-modules/contextily/default.nix @@ -0,0 +1,33 @@ +{ lib, python3Packages, fetchFromGitHub }: + +python3Packages.buildPythonPackage rec { + pname = "contextily"; + version = "1.1.0"; + disabled = python3Packages.pythonOlder "3.6"; + + src = fetchFromGitHub { + owner = "geopandas"; + repo = pname; + rev = "v${version}"; + hash = "sha256-ftsZRLeOWmqXbgw8E2FIoRSkjz4tuhQgHVbhNULaauQ="; + }; + + propagatedBuildInputs = with python3Packages; [ + geopy + matplotlib + mercantile + pillow + rasterio + requests + joblib + ]; + + doCheck = false; + + meta = with lib; { + description = "Context geo-tiles in Python"; + homepage = "https://github.com/geopandas/contextily"; + license = licenses.bsd3; + maintainers = [ maintainers.sikmir ]; + }; +}