python3Packages.odc-geo: init at 0.4.9 (#381418)

authored by Gaétan Lepage and committed by GitHub bcfe6bf7 bc1549a1

+119
+117
pkgs/development/python-modules/odc-geo/default.nix
··· 1 + { 2 + lib, 3 + buildPythonPackage, 4 + fetchFromGitHub, 5 + 6 + # build-system 7 + setuptools, 8 + 9 + # dependencies 10 + affine, 11 + cachetools, 12 + numpy, 13 + pyproj, 14 + shapely, 15 + 16 + # optional-dependencies 17 + azure-storage-blob, 18 + boto3, 19 + dask, 20 + distributed, 21 + rasterio, 22 + tifffile, 23 + xarray, 24 + 25 + # tests 26 + geopandas, 27 + matplotlib, 28 + pytestCheckHook, 29 + }: 30 + 31 + buildPythonPackage rec { 32 + pname = "odc-geo"; 33 + version = "0.4.9"; 34 + pyproject = true; 35 + 36 + src = fetchFromGitHub { 37 + owner = "opendatacube"; 38 + repo = "odc-geo"; 39 + tag = "v${version}"; 40 + hash = "sha256-7OhXx+lPvZSHP+aP3ucIkVBvW5De0FLNa+azc3Ar050="; 41 + }; 42 + 43 + build-system = [ 44 + setuptools 45 + ]; 46 + 47 + dependencies = [ 48 + affine 49 + cachetools 50 + numpy 51 + pyproj 52 + shapely 53 + ]; 54 + 55 + optional-dependencies = { 56 + xr = [ xarray ]; 57 + wrap = [ rasterio ]; 58 + tiff = [ 59 + dask 60 + distributed 61 + rasterio 62 + tifffile 63 + xarray 64 + ]; 65 + s3 = [ boto3 ]; 66 + az = [ azure-storage-blob ]; 67 + all = [ 68 + azure-storage-blob 69 + boto3 70 + dask 71 + distributed 72 + rasterio 73 + tifffile 74 + xarray 75 + ]; 76 + }; 77 + 78 + nativeCheckInputs = [ 79 + geopandas 80 + matplotlib 81 + pytestCheckHook 82 + ] ++ optional-dependencies.all; 83 + 84 + pytestFlagsArray = [ "-m 'not network'" ]; 85 + 86 + disabledTests = [ 87 + # AttributeError (fixes: https://github.com/opendatacube/odc-geo/pull/202) 88 + "test_azure_multipart_upload" 89 + # network access 90 + "test_empty_cog" 91 + # urllib url open error 92 + "test_country_geom" 93 + "test_from_geopandas" 94 + "test_geoboxtiles_intersect" 95 + "test_warp_nan" 96 + # requires imagecodecs package (currently not available on nixpkgs) 97 + "test_cog_with_dask_smoke_test" 98 + ]; 99 + 100 + pythonImportsCheck = [ 101 + "odc.geo" 102 + "odc.geo.xr" 103 + ]; 104 + 105 + meta = { 106 + description = "GeoBox and geometry utilities extracted from datacube-core"; 107 + longDescription = '' 108 + This library combines geometry shape classes from `shapely` with CRS from 109 + `pyproj` to provide a number of data types and utilities useful for working 110 + with geospatial metadata and geo-registered `xarray` rasters. 111 + ''; 112 + homepage = "https://github.com/opendatacube/odc-geo/"; 113 + changelog = "https://github.com/opendatacube/odc-geo/tag/v${version}"; 114 + license = lib.licenses.asl20; 115 + maintainers = with lib.maintainers; [ daspk04 ]; 116 + }; 117 + }
+2
pkgs/top-level/python-packages.nix
··· 9650 9650 9651 9651 od = callPackage ../development/python-modules/od { }; 9652 9652 9653 + odc-geo = callPackage ../development/python-modules/odc-geo { }; 9654 + 9653 9655 oddsprout = callPackage ../development/python-modules/oddsprout { }; 9654 9656 9655 9657 odfpy = callPackage ../development/python-modules/odfpy { };