Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.6 kB · 95 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596{ lib, buildPythonPackage, fetchFromGitHub,
# build-system hatchling,
# dependencies affine, dask, numpy, odc-geo, odc-loader, pandas, pystac, rasterio, toolz, xarray,
# optional-dependencies botocore,
# tests geopandas, distributed, pystac-client, pytestCheckHook,}:
buildPythonPackage rec { pname = "odc-stac"; version = "0.4.0rc2"; pyproject = true;
src = fetchFromGitHub { owner = "opendatacube"; repo = "odc-stac"; tag = "v${version}"; hash = "sha256-I25qAJEryYaYO7KIVIoTlgzLS6PWkNG6b4NFyhghyKQ="; };
build-system = [ hatchling ];
dependencies = [ affine dask numpy odc-geo odc-loader pandas pystac rasterio toolz xarray ];
optional-dependencies = { botocore = [ botocore ]; };
nativeCheckInputs = [ geopandas distributed pystac-client pytestCheckHook ] ++ optional-dependencies.botocore;
disabledTestMarks = [ "network" ];
disabledTests = [ # pystac href error (possible related to network) "test_extract_md" "test_parse_item" "test_parse_item_no_proj" # urllib url open error "test_norm_geom" "test_output_geobox" ];
pythonImportsCheck = [ "odc.stac" ];
meta = { description = "Load STAC items into xarray Datasets"; homepage = "https://github.com/opendatacube/odc-stac/"; changelog = "https://github.com/opendatacube/odc-stac/tag/v${version}"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ daspk04 ]; };}