commit cd73aeefb2f628a6fcdcd820323d3cf82031e8a7
parent b745ac6f6c25cfc1c8b15c05774148ab9394ac1f
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date: Sun, 14 Jul 2024 15:35:56 +0400
Add geoarrow-pandas
Diffstat:
2 files changed, 30 insertions(+), 0 deletions(-)
diff --git a/pkgs/default.nix b/pkgs/default.nix
@@ -191,6 +191,7 @@ lib.makeScope newScope (
elevation = callPackage ./geospatial/elevation { click = click-6-7; };
garmindev = callPackage ./geospatial/qlandkartegt/garmindev.nix { };
geoarrow-c = callPackage ./geospatial/geoarrow-c { };
+ geoarrow-pandas = callPackage ./geospatial/geoarrow-pandas { };
geoarrow-pyarrow = callPackage ./geospatial/geoarrow-pyarrow { };
geojson-pydantic = callPackage ./geospatial/geojson-pydantic { };
geowebcache = callPackage ./geospatial/geowebcache { };
diff --git a/pkgs/geospatial/geoarrow-pandas/default.nix b/pkgs/geospatial/geoarrow-pandas/default.nix
@@ -0,0 +1,29 @@
+{
+ lib,
+ fetchFromGitHub,
+ python3Packages,
+ geoarrow-pyarrow,
+}:
+
+python3Packages.buildPythonPackage rec {
+ pname = "geoarrow-pandas";
+ inherit (geoarrow-pyarrow) version src;
+ pyproject = true;
+
+ sourceRoot = "${src.name}/geoarrow-pandas";
+
+ build-system = with python3Packages; [ setuptools-scm ];
+
+ dependencies = with python3Packages; [
+ geoarrow-pyarrow
+ pandas
+ pyarrow
+ ];
+
+ meta = {
+ description = "Python implementation of the GeoArrow specification";
+ homepage = "https://github.com/geoarrow/geoarrow-python";
+ license = lib.licenses.asl20;
+ maintainers = [ lib.maintainers.sikmir ];
+ };
+}