Skip to content

Commit

Permalink
python3.pkgs.geoarrow-pandas: init at 0.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud committed Oct 22, 2024
1 parent a06ca42 commit 17b05c6
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 0 deletions.
52 changes: 52 additions & 0 deletions pkgs/development/python-modules/geoarrow-pandas/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
pytestCheckHook,
pandas,
pyarrow,
geoarrow-pyarrow,
setuptools-scm,
}:
buildPythonPackage rec {
pname = "geoarrow-pandas";
version = "0.1.2";
pyproject = true;

disabled = pythonOlder "3.8";

src = fetchFromGitHub {
repo = "geoarrow-python";
owner = "geoarrow";
rev = "refs/tags/geoarrow-pandas-${version}";
hash = "sha256-Ni+GKTRhRDRHip1us3OZPuUhHQCNU7Nap865T/+CU8Y=";
};

sourceRoot = "${src.name}/geoarrow-pandas";

build-system = [ setuptools-scm ];

env.SETUPTOOLS_SCM_PRETEND_VERSION = version;

dependencies = [
geoarrow-pyarrow
pandas
pyarrow
];

nativeCheckInputs = [
pytestCheckHook
];

pythonImportsCheck = [ "geoarrow.pandas" ];

meta = with lib; {
description = "Python implementation of the GeoArrow specification";
homepage = "https://github.com/geoarrow/geoarrow-python";
license = licenses.asl20;
maintainers = with maintainers; [
cpcloud
];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4968,6 +4968,8 @@ self: super: with self; {

geoarrow-types = callPackage ../development/python-modules/geoarrow-types { };

geoarrow-pandas = callPackage ../development/python-modules/geoarrow-pandas { };

geoarrow-pyarrow = callPackage ../development/python-modules/geoarrow-pyarrow { };

geocachingapi = callPackage ../development/python-modules/geocachingapi { };
Expand Down

0 comments on commit 17b05c6

Please sign in to comment.