summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-wradlib/package.py
blob: aa24d67afb74e6437ae014ad48fa0bfbf575afcf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# 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 PyWradlib(PythonPackage):
    """wradlib is designed to assist you in the most important steps of
    processing weather radar data. These may include: reading common data
    formats, georeferencing, converting reflectivity to rainfall intensity,
    identifying and correcting typical error sources (such as clutter or
    attenuation) and visualising the data."""

    homepage = "https://docs.wradlib.org"
    url      = "https://pypi.io/packages/source/w/wradlib/wradlib-1.5.0.tar.gz"

    version('1.5.0', sha256='9bf0742d7235ea830e83c2269f6b5d1afd83d92696efce0a7bcdb0c4f6604784')

    depends_on('py-setuptools', type='build')

    # recommended versions from https://docs.wradlib.org/en/stable/installation.html#dependencies
    depends_on('py-numpy@1.16:', type=('build', 'run'))
    depends_on('py-matplotlib@3.0.2:', type=('build', 'run'))
    depends_on('py-scipy@1.2.0:', type=('build', 'run'))
    depends_on('py-h5py@2.9:', type=('build', 'run'))
    depends_on('py-netcdf4@1.4.2:', type=('build', 'run'))
    depends_on('py-xarray@0.11.3:', type=('build', 'run'))
    depends_on('py-xmltodict@0.11:', type=('build', 'run'))
    depends_on('py-semver', type=('build', 'run'))
    depends_on('py-deprecation', type=('build', 'run'))
    depends_on('py-requests', type=('build', 'run'))

    depends_on('gdal@2.4.0:+python', type=('build', 'run'))