commit b32c7cef7d4df016b2fea61454d7ebc0ea10f942 parent 281813f993a0e2302fa6279f588c662a20442132 Author: Nikolay Korotkiy <sikmir@gmail.com> Date: Sat, 31 Jul 2021 22:51:32 +0300 Add earthpy Diffstat:
M | pkgs/default.nix | | | 1 | + |
A | pkgs/development/python-modules/earthpy/default.nix | | | 31 | +++++++++++++++++++++++++++++++ |
2 files changed, 32 insertions(+), 0 deletions(-)
diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -93,6 +93,7 @@ lib.makeScope newScope ( bson = callPackage ./development/python-modules/bson { }; click-6-7 = callPackage ./development/python-modules/click { }; contextily = callPackage ./development/python-modules/contextily { }; + earthpy = callPackage ./development/python-modules/earthpy { }; 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/earthpy/default.nix b/pkgs/development/python-modules/earthpy/default.nix @@ -0,0 +1,31 @@ +{ lib, python3Packages, fetchFromGitHub }: + +python3Packages.buildPythonPackage rec { + pname = "earthpy"; + version = "0.9.2"; + + src = fetchFromGitHub { + owner = "earthlab"; + repo = pname; + rev = "v${version}"; + hash = "sha256-LMKExIyhtI+gqcxBxhBPWKMyMHr/mJEJwQRSlNUXQP8="; + }; + + propagatedBuildInputs = with python3Packages; [ + geopandas + matplotlib + numpy + rasterio + scikitimage + requests + ]; + + doCheck = false; + + meta = with lib; { + description = "A package built to support working with spatial data using open source python"; + inherit (src.meta) homepage; + license = licenses.bsd3; + maintainers = [ maintainers.sikmir ]; + }; +}