spack/var/spack/repos/builtin/packages/py-cf-units/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

31 lines
1.1 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 PyCfUnits(PythonPackage):
"""Units of measure as required by the Climate and Forecast (CF)
metadata conventions.
"""
homepage = "https://scitools.org.uk"
pypi = "cf-units/cf-units-2.1.1.tar.gz"
git = "https://github.com/SciTools/cf-units.git"
version('master', branch='master')
version('2.1.4', sha256='25f81ad994af30713ee8f5ef18ffddd83c6ec1ac308e1bd89d45de9d2e0f1c31')
version('2.1.1', sha256='fa0ef8efd84546e61088aa23e76ebbaf7043167dc3a7f35f34549c234b543530')
depends_on('python@3:', type=('build', 'run'))
depends_on('py-setuptools', type='build')
depends_on('py-six', type=('build', 'run'))
depends_on('py-cftime', type=('build', 'run'))
depends_on('py-cython', type=('build', 'run'))
depends_on('py-numpy', type=('build', 'run'))
depends_on('py-antlr4-python3-runtime', type=('build', 'run'))
depends_on('py-pytest-runner', type=('build'))
depends_on('udunits')