1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pythonOlder,
6 pytestCheckHook,
7 pyarrow,
8 cython,
9 numpy,
10 setuptools,
11 setuptools-scm,
12}:
13buildPythonPackage rec {
14 pname = "geoarrow-c";
15 version = "0.1.3";
16 pyproject = true;
17
18 disabled = pythonOlder "3.8";
19
20 src = fetchFromGitHub {
21 repo = "geoarrow-c";
22 owner = "geoarrow";
23 tag = "geoarrow-c-python-${version}";
24 hash = "sha256-kQCD3Vptl7GtRFigr4darvdtwnaHRLZWvBBpZ0xHMgM=";
25 };
26
27 sourceRoot = "${src.name}/python/geoarrow-c";
28
29 build-system = [
30 cython
31 setuptools
32 setuptools-scm
33 ];
34
35 env.SETUPTOOLS_SCM_PRETEND_VERSION = version;
36
37 nativeCheckInputs = [
38 pytestCheckHook
39 pyarrow
40 numpy
41 ];
42
43 pythonImportsCheck = [ "geoarrow.c" ];
44
45 meta = with lib; {
46 description = "Experimental C and C++ implementation of the GeoArrow specification";
47 homepage = "https://github.com/geoarrow/geoarrow-c";
48 license = licenses.asl20;
49 maintainers = with maintainers; [
50 cpcloud
51 ];
52 teams = [ lib.teams.geospatial ];
53 };
54}