about summary refs log tree commit diff
path: root/pkgs/development/python-modules/geoparquet/default.nix
blob: d4b54610c506b583d5c17ddd980700e3db9d08e8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  pandas,
  pyarrow,
  pyproj,
  shapely,
  geopandas,
  pytestCheckHook,
}:

buildPythonPackage {
  pname = "geoparquet";
  version = "0.7.5";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "darcy-r";
    repo = "geoparquet-python";
    rev = "b09b12dd0ebc34d73f082c3d97ccb69a889167e3";
    hash = "sha256-WGZfDQh7Abh83n8jsCGr41IlKKq7QVDlauuWi20llh8=";
  };

  build-system = [ setuptools ];

  dependencies = [
    pandas
    pyarrow
    pyproj
    shapely
    geopandas
  ];

  nativeCheckInputs = [ pytestCheckHook ];
  pythonImportsCheck = [ "geoparquet" ];

  doCheck = false; # no tests

  meta = {
    description = "API between Parquet files and GeoDataFrames for fast input/output of GIS data";
    homepage = "https://github.com/darcy-r/geoparquet-python";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ sigmanificient ];
  };
}