summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorNeil Flood <neilflood@fastmail.fm>2018-12-24 06:56:08 +1000
committerAdam J. Stewart <ajstewart426@gmail.com>2018-12-23 14:56:08 -0600
commit75b83ef2a73ca9ea55cb7e88b986b2dddce593ca (patch)
treee980ab988ec893967dedafc7cb8fe89bf7527342 /var
parente7e32cc2d671be385df76a13fbe2d88b234f17f8 (diff)
downloadspack-75b83ef2a73ca9ea55cb7e88b986b2dddce593ca.tar.gz
spack-75b83ef2a73ca9ea55cb7e88b986b2dddce593ca.tar.bz2
spack-75b83ef2a73ca9ea55cb7e88b986b2dddce593ca.tar.xz
spack-75b83ef2a73ca9ea55cb7e88b986b2dddce593ca.zip
py-cftime: new package (#10066)
* py-cftime: new package * Added dependency on py-setuptools, and version range for py-cython, thanks to the ever-vigilant @adamjstewart
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/py-cftime/package.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-cftime/package.py b/var/spack/repos/builtin/packages/py-cftime/package.py
new file mode 100644
index 0000000000..b4a600f5dd
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-cftime/package.py
@@ -0,0 +1,21 @@
+# Copyright 2013-2018 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 PyCftime(PythonPackage):
+ """Python library for decoding time units and variable values in a
+ netCDF file conforming to the Climate and Forecasting (CF)
+ netCDF conventions"""
+
+ homepage = "https://unidata.github.io/cftime/"
+ url = "https://github.com/Unidata/cftime/archive/v1.0.3.4rel.tar.gz"
+
+ version('1.0.3.4', sha256='f261ff8c65ceef4799784cd999b256d608c177d4c90b083553aceec3b6c23fd3')
+
+ depends_on('py-setuptools@18.0:', type='build')
+ depends_on('py-cython@0.19:', type='build')
+ depends_on('py-numpy', type=('build', 'run'))