mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 08:13:04 +00:00
python3.pkgs.geoarrow-pandas: init at 0.1.2 (#349312)
This commit is contained in:
commit
cc1e73d10d
53
pkgs/development/python-modules/geoarrow-c/default.nix
Normal file
53
pkgs/development/python-modules/geoarrow-c/default.nix
Normal file
@ -0,0 +1,53 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
pythonOlder,
|
||||
pytestCheckHook,
|
||||
pyarrow,
|
||||
cython,
|
||||
numpy,
|
||||
setuptools,
|
||||
setuptools-scm,
|
||||
}:
|
||||
buildPythonPackage rec {
|
||||
pname = "geoarrow-c";
|
||||
version = "0.1.3";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
repo = "geoarrow-c";
|
||||
owner = "geoarrow";
|
||||
rev = "refs/tags/geoarrow-c-python-${version}";
|
||||
hash = "sha256-kQCD3Vptl7GtRFigr4darvdtwnaHRLZWvBBpZ0xHMgM=";
|
||||
};
|
||||
|
||||
sourceRoot = "${src.name}/python/geoarrow-c";
|
||||
|
||||
build-system = [
|
||||
cython
|
||||
setuptools
|
||||
setuptools-scm
|
||||
];
|
||||
|
||||
env.SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
pyarrow
|
||||
numpy
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "geoarrow.c" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Experimental C and C++ implementation of the GeoArrow specification";
|
||||
homepage = "https://github.com/geoarrow/geoarrow-c";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [
|
||||
cpcloud
|
||||
];
|
||||
};
|
||||
}
|
52
pkgs/development/python-modules/geoarrow-pandas/default.nix
Normal file
52
pkgs/development/python-modules/geoarrow-pandas/default.nix
Normal file
@ -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
|
||||
];
|
||||
};
|
||||
}
|
77
pkgs/development/python-modules/geoarrow-pyarrow/default.nix
Normal file
77
pkgs/development/python-modules/geoarrow-pyarrow/default.nix
Normal file
@ -0,0 +1,77 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
pythonOlder,
|
||||
pytestCheckHook,
|
||||
geoarrow-c,
|
||||
pyarrow,
|
||||
pyarrow-hotfix,
|
||||
numpy,
|
||||
pandas,
|
||||
geopandas,
|
||||
pyogrio,
|
||||
pyproj,
|
||||
setuptools-scm,
|
||||
}:
|
||||
buildPythonPackage rec {
|
||||
pname = "geoarrow-pyarrow";
|
||||
version = "0.1.2";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
repo = "geoarrow-python";
|
||||
owner = "geoarrow";
|
||||
rev = "refs/tags/geoarrow-pyarrow-${version}";
|
||||
hash = "sha256-Ni+GKTRhRDRHip1us3OZPuUhHQCNU7Nap865T/+CU8Y=";
|
||||
};
|
||||
|
||||
sourceRoot = "${src.name}/geoarrow-pyarrow";
|
||||
|
||||
build-system = [ setuptools-scm ];
|
||||
|
||||
disabledTests = [
|
||||
# these tests are incompatible with arrow 17
|
||||
"test_make_point"
|
||||
"test_point_with_offset"
|
||||
"test_linestring_with_offset"
|
||||
"test_polygon_with_offset"
|
||||
"test_multipoint_with_offset"
|
||||
"test_multilinestring_with_offset"
|
||||
"test_multipolygon_with_offset"
|
||||
"test_multipolygon_with_offset_nonempty_inner_lists"
|
||||
"test_interleaved_multipolygon_with_offset"
|
||||
"test_readpyogrio_table_gpkg"
|
||||
"test_geometry_type_basic"
|
||||
];
|
||||
|
||||
dependencies = [
|
||||
geoarrow-c
|
||||
pyarrow
|
||||
pyarrow-hotfix
|
||||
];
|
||||
|
||||
env.SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
numpy
|
||||
pandas
|
||||
geopandas
|
||||
pyogrio
|
||||
pyproj
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "geoarrow.pyarrow" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "PyArrow implementation of geospatial data types";
|
||||
homepage = "https://github.com/geoarrow/geoarrow-python";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [
|
||||
cpcloud
|
||||
];
|
||||
};
|
||||
}
|
45
pkgs/development/python-modules/geoarrow-types/default.nix
Normal file
45
pkgs/development/python-modules/geoarrow-types/default.nix
Normal file
@ -0,0 +1,45 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
pythonOlder,
|
||||
pytestCheckHook,
|
||||
pyarrow,
|
||||
setuptools-scm,
|
||||
}:
|
||||
buildPythonPackage rec {
|
||||
pname = "geoarrow-types";
|
||||
version = "0.2.0";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
repo = "geoarrow-python";
|
||||
owner = "geoarrow";
|
||||
rev = "refs/tags/geoarrow-types-${version}";
|
||||
hash = "sha256-LySb4AsRuSirDJ73MAPpnMwPM2WFfG6X82areR4Y4lI=";
|
||||
};
|
||||
|
||||
sourceRoot = "${src.name}/geoarrow-types";
|
||||
|
||||
build-system = [ setuptools-scm ];
|
||||
|
||||
env.SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
pyarrow
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "geoarrow.types" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "PyArrow types for geoarrow";
|
||||
homepage = "https://github.com/geoarrow/geoarrow-python";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [
|
||||
cpcloud
|
||||
];
|
||||
};
|
||||
}
|
@ -5058,6 +5058,14 @@ self: super: with self; {
|
||||
|
||||
geoalchemy2 = callPackage ../development/python-modules/geoalchemy2 { };
|
||||
|
||||
geoarrow-c = callPackage ../development/python-modules/geoarrow-c { };
|
||||
|
||||
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 { };
|
||||
|
||||
geocoder = callPackage ../development/python-modules/geocoder { };
|
||||
|
Loading…
Reference in New Issue
Block a user