summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam J. Stewart <ajstewart426@gmail.com>2021-05-27 15:14:59 -0500
committerGitHub <noreply@github.com>2021-05-27 13:14:59 -0700
commitcc4029daabe6c633430ee67569e7a4ad0c4c5d02 (patch)
treee4f14bc95c9c2fcfa6b35c10fb22d9b77e845bbb
parent4e8d87e5cc9c6cc536e4bd919e5f53aa7c3a7c75 (diff)
downloadspack-cc4029daabe6c633430ee67569e7a4ad0c4c5d02.tar.gz
spack-cc4029daabe6c633430ee67569e7a4ad0c4c5d02.tar.bz2
spack-cc4029daabe6c633430ee67569e7a4ad0c4c5d02.tar.xz
spack-cc4029daabe6c633430ee67569e7a4ad0c4c5d02.zip
py-datacube: add new package (#23905)
Co-authored-by: Tamara Dahlgren <35777542+tldahlgren@users.noreply.github.com>
-rw-r--r--var/spack/repos/builtin/packages/py-datacube/package.py49
1 files changed, 49 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-datacube/package.py b/var/spack/repos/builtin/packages/py-datacube/package.py
new file mode 100644
index 0000000000..d9ade69189
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-datacube/package.py
@@ -0,0 +1,49 @@
+# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
+# Spack Project Developers. See the top-level COPYRIGHT file for details.
+#
+# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+
+from spack import *
+
+
+class PyDatacube(PythonPackage):
+ """An analysis environment for satellite and other earth observation data."""
+
+ homepage = "https://github.com/opendatacube/datacube-core"
+ pypi = "datacube/datacube-1.8.3.tar.gz"
+
+ maintainers = ['adamjstewart']
+
+ version('1.8.3', sha256='d1e1a49c615fdaebf6e6008da7f925bc09e9d7bf94f259a1c596d266d1c36649')
+
+ # Excluding 'datacube.utils.aws' since it requires 'boto3'
+ import_modules = [
+ 'datacube_apps', 'datacube_apps.stacker', 'datacube', 'datacube.ui',
+ 'datacube.drivers', 'datacube.drivers.rio', 'datacube.drivers.postgres',
+ 'datacube.drivers.netcdf', 'datacube.utils', 'datacube.utils.rio',
+ 'datacube.utils.geometry', 'datacube.storage', 'datacube.execution',
+ 'datacube.virtual', 'datacube.scripts', 'datacube.model', 'datacube.api',
+ 'datacube.index', 'datacube.testutils'
+ ]
+
+ depends_on('python@3.6:', type=('build', 'run'))
+ depends_on('py-setuptools', type=('build', 'run'))
+ depends_on('py-affine', type=('build', 'run'))
+ depends_on('py-pyproj@2.5:', type=('build', 'run'))
+ depends_on('py-shapely@1.6.4:', type=('build', 'run'))
+ depends_on('py-cachetools', type=('build', 'run'))
+ depends_on('py-click@5.0:', type=('build', 'run'))
+ depends_on('py-cloudpickle@0.4:', type=('build', 'run'))
+ depends_on('py-dask+array', type=('build', 'run'))
+ depends_on('py-distributed', type=('build', 'run'))
+ depends_on('py-jsonschema', type=('build', 'run'))
+ depends_on('py-netcdf4', type=('build', 'run'))
+ depends_on('py-numpy', type=('build', 'run'))
+ depends_on('py-psycopg2', type=('build', 'run'))
+ depends_on('py-lark-parser@0.6.7:', type=('build', 'run'))
+ depends_on('py-python-dateutil', type=('build', 'run'))
+ depends_on('py-pyyaml', type=('build', 'run'))
+ depends_on('py-rasterio@1.0.2:', type=('build', 'run'))
+ depends_on('py-sqlalchemy', type=('build', 'run'))
+ depends_on('py-toolz', type=('build', 'run'))
+ depends_on('py-xarray@0.9:', type=('build', 'run'))