python3.pkgs.geoarrow-types: init at 0.2.0

This commit is contained in:
Phillip Cloud
2024-10-17 08:28:01 -04:00
parent 7af14ef2ce
commit 5f6dd3654c
2 changed files with 47 additions and 0 deletions

View 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
];
};
}

View File

@@ -4964,6 +4964,8 @@ self: super: with self; {
geoalchemy2 = callPackage ../development/python-modules/geoalchemy2 { };
geoarrow-types = callPackage ../development/python-modules/geoarrow-types { };
geocachingapi = callPackage ../development/python-modules/geocachingapi { };
geocoder = callPackage ../development/python-modules/geocoder { };