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