spack/var/spack/repos/builtin/packages/py-pyproj/package.py
Todd Gamblin a8ccb8e116 copyrights: update all files with license headers for 2021
- [x] add `concretize.lp`, `spack.yaml`, etc. to licensed files
- [x] update all licensed files to say 2013-2021 using
      `spack license update-copyright-year`
- [x] appease mypy with some additions to package.py that needed
      for oneapi.py
2021-01-02 12:12:00 -08:00

38 lines
1.5 KiB
Python

# 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 PyPyproj(PythonPackage):
"""Python interface to the PROJ.4 Library."""
homepage = "https://github.com/pyproj4/pyproj"
pypi = "pyproj/pyproj-2.2.0.tar.gz"
git = "https://github.com/pyproj4/pyproj.git"
maintainers = ['citibeth', 'adamjstewart']
version('2.6.0', sha256='977542d2f8cf2981cf3ad72cedfebcd6ac56977c7aa830d9b49fa7888b56e83d')
version('2.2.0', sha256='0a4f793cc93539c2292638c498e24422a2ec4b25cb47545addea07724b2a56e5')
version('2.1.3', sha256='99c52788b01a7bb9a88024bf4d40965c0a66a93d654600b5deacf644775f424d')
version('1.9.6', sha256='e0c02b1554b20c710d16d673817b2a89ff94738b0b537aead8ecb2edc4c4487b')
version('1.9.5.1', sha256='53fa54c8fa8a1dfcd6af4bf09ce1aae5d4d949da63b90570ac5ec849efaf3ea8')
depends_on('python@:2', when='@:1.9.5.1')
depends_on('python@3:', when='@2.3:')
depends_on('python@3.5:', when='@2.6.0:')
depends_on('py-setuptools', type='build')
depends_on('py-cython', type='build')
depends_on('py-cython@0.28:', when='@2.6.0:')
depends_on('py-aenum', type=('build', 'run'), when='@2.2:^python@:3.5')
depends_on('proj')
depends_on('proj@:5', when='@:1')
depends_on('proj@6.1:', when='@2.2:')
depends_on('proj@6.0:', when='@2.0:')
def setup_build_environment(self, env):
env.set('PROJ_DIR', self.spec['proj'].prefix)