Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.4 kB · 79 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980{ lib, buildPythonPackage, fetchFromGitHub,
# build-system flit, setuptools,
# dependencies dask, numpy, odc-geo, rasterio, xarray,
# optional-dependencies botocore, zarr,
# tests geopandas, pytestCheckHook,}:
buildPythonPackage rec { pname = "odc-loader"; version = "0.5.1"; pyproject = true;
src = fetchFromGitHub { owner = "opendatacube"; repo = "odc-loader"; tag = "v${version}"; hash = "sha256-yBCityE9e29wUnPuD09MTeyyVY/o9X/1lUq3Su8sd6g="; };
build-system = [ flit ];
dependencies = [ dask numpy odc-geo rasterio xarray ];
optional-dependencies = { botocore = [ botocore ]; zarr = [ zarr ]; all = lib.flatten (lib.attrValues (lib.filterAttrs (n: v: n != "all") optional-dependencies)); };
nativeCheckInputs = [ geopandas pytestCheckHook ] ++ optional-dependencies.all;
disabledTests = [ # Require internet access "test_mem_reader" "test_memreader_zarr" ];
pythonImportsCheck = [ "odc.loader" ];
meta = { description = "Tools for constructing xarray objects from parsed metadata"; homepage = "https://github.com/opendatacube/odc-loader/"; changelog = "https://github.com/opendatacube/odc-loader/tag/${version}"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ daspk04 ]; };}