summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-cdsapi/package.py
blob: 11e966f27a5161209c9e37b240599edbd5e38681 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Copyright 2013-2024 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.package 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"
    pypi = "cdsapi/cdsapi-0.2.3.tar.gz"

    license("Apache-2.0")

    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"))