New package py-wradlib with new dependencies (#13459)
* New package py-wradlib with new dependencies py-deprecation, py-semver, py-xmltodict * Adjusted package source source * Adjusted xarray package to use pypi-source * Added dependencies * Added explicit gdal+python dependency * Concretised dependency versions * Removed strict version range
This commit is contained in:
		
				
					committed by
					
						
						Adam J. Stewart
					
				
			
			
				
	
			
			
			
						parent
						
							c175be4420
						
					
				
				
					commit
					9331a943ce
				
			
							
								
								
									
										19
									
								
								var/spack/repos/builtin/packages/py-deprecation/package.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								var/spack/repos/builtin/packages/py-deprecation/package.py
									
									
									
									
									
										Normal file
									
								
							@@ -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 PyDeprecation(PythonPackage):
 | 
			
		||||
    """The deprecation library provides a deprecated decorator and a
 | 
			
		||||
    fail_if_not_removed decorator for your tests. """
 | 
			
		||||
 | 
			
		||||
    homepage = "http://deprecation.readthedocs.io/"
 | 
			
		||||
    url      = "https://pypi.io/packages/source/d/deprecation/deprecation-2.0.7.tar.gz"
 | 
			
		||||
 | 
			
		||||
    version('2.0.7', sha256='c0392f676a6146f0238db5744d73e786a43510d54033f80994ef2f4c9df192ed')
 | 
			
		||||
 | 
			
		||||
    depends_on('py-setuptools', type='build')
 | 
			
		||||
    depends_on('py-packaging', type='build')
 | 
			
		||||
							
								
								
									
										18
									
								
								var/spack/repos/builtin/packages/py-semver/package.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								var/spack/repos/builtin/packages/py-semver/package.py
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,18 @@
 | 
			
		||||
# 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 PySemver(PythonPackage):
 | 
			
		||||
    """A Python module for semantic versioning.
 | 
			
		||||
    Simplifies comparing versions."""
 | 
			
		||||
 | 
			
		||||
    homepage = "https://semver.org/"
 | 
			
		||||
    url      = "https://pypi.io/packages/source/s/semver/semver-2.8.1.tar.gz"
 | 
			
		||||
 | 
			
		||||
    version('2.8.1', sha256='5b09010a66d9a3837211bb7ae5a20d10ba88f8cb49e92cb139a69ef90d5060d8')
 | 
			
		||||
 | 
			
		||||
    depends_on('py-setuptools', type='build')
 | 
			
		||||
							
								
								
									
										35
									
								
								var/spack/repos/builtin/packages/py-wradlib/package.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										35
									
								
								var/spack/repos/builtin/packages/py-wradlib/package.py
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,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'))
 | 
			
		||||
@@ -12,8 +12,23 @@ class PyXarray(PythonPackage):
 | 
			
		||||
    homepage = "https://github.com/pydata/xarray"
 | 
			
		||||
    url      = "https://pypi.io/packages/source/x/xarray/xarray-0.9.1.tar.gz"
 | 
			
		||||
 | 
			
		||||
    version('0.14.0', sha256='a8b93e1b0af27fa7de199a2d36933f1f5acc9854783646b0f1b37fed9b4da091')
 | 
			
		||||
    version('0.13.0', sha256='80e5746ffdebb96b997dba0430ff02d98028ef3828e6db6106cbbd6d62e32825')
 | 
			
		||||
    version('0.12.0', sha256='856fd062c55208a248ac3784cac8d3524b355585387043efc92a4188eede57f3')
 | 
			
		||||
    version('0.11.0', sha256='636964baccfca0e5d69220ac4ecb948d561addc76f47704064dcbe399e03a818')
 | 
			
		||||
    version('0.9.1', sha256='89772ed0e23f0e71c3fb8323746374999ecbe79c113e3fadc7ae6374e6dc0525')
 | 
			
		||||
 | 
			
		||||
    depends_on('python@2.7:2.8,3.5:',   when='@0.11:',  type=('build', 'run'))
 | 
			
		||||
    depends_on('python@3.5:',           when='@0.12',   type=('build', 'run'))
 | 
			
		||||
    depends_on('python@3.5.3:',         when='@0.13',   type=('build', 'run'))
 | 
			
		||||
    depends_on('python@3.6:',           when='@0.14:',  type=('build', 'run'))
 | 
			
		||||
 | 
			
		||||
    depends_on('py-setuptools', type='build')
 | 
			
		||||
    depends_on('py-pandas@0.15.0:',  type=('build', 'run'))
 | 
			
		||||
    depends_on('py-numpy@1.7:',      type=('build', 'run'))
 | 
			
		||||
 | 
			
		||||
    depends_on('py-pandas@0.15.0:', when='@0.9.1',      type=('build', 'run'))
 | 
			
		||||
    depends_on('py-pandas@0.19.2:', when='@0.11:0.13',  type=('build', 'run'))
 | 
			
		||||
    depends_on('py-pandas@0.24:',   when='@0.14:',      type=('build', 'run'))
 | 
			
		||||
 | 
			
		||||
    depends_on('py-numpy@1.7:',     when='@0.9.1',      type=('build', 'run'))
 | 
			
		||||
    depends_on('py-numpy@1.12:',    when='@0.11:0.13',  type=('build', 'run'))
 | 
			
		||||
    depends_on('py-numpy@1.14:',    when='@0.14:',      type=('build', 'run'))
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										19
									
								
								var/spack/repos/builtin/packages/py-xmltodict/package.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								var/spack/repos/builtin/packages/py-xmltodict/package.py
									
									
									
									
									
										Normal file
									
								
							@@ -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 PyXmltodict(PythonPackage):
 | 
			
		||||
    """xmltodict is a Python module that makes working with XML feel like
 | 
			
		||||
    you are working with JSON."""
 | 
			
		||||
 | 
			
		||||
    homepage = "https://github.com/martinblech/xmltodict"
 | 
			
		||||
    url      = "https://pypi.io/packages/source/x/xmltodict/xmltodict-0.12.0.tar.gz"
 | 
			
		||||
 | 
			
		||||
    version('0.12.0', sha256='50d8c638ed7ecb88d90561beedbf720c9b4e851a9fa6c47ebd64e99d166d8a21')
 | 
			
		||||
 | 
			
		||||
    depends_on('py-setuptools', type='build')
 | 
			
		||||
    depends_on('python@2.7:2.8,3.4:', type=('build', 'run'))
 | 
			
		||||
		Reference in New Issue
	
	Block a user