diff --git a/pkgs/development/python-modules/geoarrow-types/default.nix b/pkgs/development/python-modules/geoarrow-types/default.nix new file mode 100644 index 000000000000..366fa20eeee4 --- /dev/null +++ b/pkgs/development/python-modules/geoarrow-types/default.nix @@ -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 + ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 61fd9424c546..ef18f89beb47 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -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 { };