summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJannek Squar <squar@informatik.uni-hamburg.de>2019-10-24 20:30:21 +0200
committerAdam J. Stewart <ajstewart426@gmail.com>2019-10-24 13:30:21 -0500
commit5004b20f5cf427f47ae5a0c21445c4d421d7744f (patch)
treee6c35f5839059d23e4fb94e6eb2d35ada5144706
parent2dd83523e20c98eea5bec11dab335947af93d7a5 (diff)
downloadspack-5004b20f5cf427f47ae5a0c21445c4d421d7744f.tar.gz
spack-5004b20f5cf427f47ae5a0c21445c4d421d7744f.tar.bz2
spack-5004b20f5cf427f47ae5a0c21445c4d421d7744f.tar.xz
spack-5004b20f5cf427f47ae5a0c21445c4d421d7744f.zip
New package: py-cdsapi (#13363)
* New package py-cdsapi to access Climate Data Store for downloading climate and weather reanalysis data * Improvements
-rw-r--r--var/spack/repos/builtin/packages/py-cdsapi/package.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-cdsapi/package.py b/var/spack/repos/builtin/packages/py-cdsapi/package.py
new file mode 100644
index 0000000000..aa0d412de5
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-cdsapi/package.py
@@ -0,0 +1,19 @@
+# Copyright 2013-2019 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 PyCdsapi(PythonPackage):
+ """The Climate Data Store Application Program Interface is a service providing programmatic access to CDS data. Get your UID and API key from the CDS portal at the address https://cds.climate.copernicus.eu/user and write it into the configuration file. Look at https://pypi.org/project/cdsapi/ for an example"""
+
+ homepage = "https://cds.climate.copernicus.eu"
+ url = "https://pypi.io/packages/source/c/cdsapi/cdsapi-0.2.3.tar.gz"
+
+ version('0.2.3', sha256='333b31ec263224399635db9b21a2e1a50cd73451f5179f8d967437e7c9161d9b')
+
+ depends_on('py-setuptools', type='build')
+ depends_on('py-requests@2.5.0:', type=('build', 'run'))
+ depends_on('py-tqdm', type=('build', 'run'))