summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-python-dateutil
diff options
context:
space:
mode:
authorAdam J. Stewart <ajstewart426@gmail.com>2019-06-16 01:40:56 -0500
committerGreg Becker <becker33@llnl.gov>2019-06-16 08:40:56 +0200
commit639cb1732296f54190db58ec3fbb0500274e4182 (patch)
tree632a7b65ea7f16e529e72c63e3f2fac104115029 /var/spack/repos/builtin/packages/py-python-dateutil
parent954a36c499d653e290717618f15de400f3fbf28a (diff)
downloadspack-639cb1732296f54190db58ec3fbb0500274e4182.tar.gz
spack-639cb1732296f54190db58ec3fbb0500274e4182.tar.bz2
spack-639cb1732296f54190db58ec3fbb0500274e4182.tar.xz
spack-639cb1732296f54190db58ec3fbb0500274e4182.zip
Rename py-dateutil -> py-python-dateutil (#11717)
Diffstat (limited to 'var/spack/repos/builtin/packages/py-python-dateutil')
-rw-r--r--var/spack/repos/builtin/packages/py-python-dateutil/package.py38
1 files changed, 38 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-python-dateutil/package.py b/var/spack/repos/builtin/packages/py-python-dateutil/package.py
new file mode 100644
index 0000000000..1abed8d85a
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-python-dateutil/package.py
@@ -0,0 +1,38 @@
+# 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 PyPythonDateutil(PythonPackage):
+ """Extensions to the standard Python datetime module."""
+
+ homepage = "https://dateutil.readthedocs.io/"
+ url = "https://pypi.io/packages/source/p/python-dateutil/python-dateutil-2.8.0.tar.gz"
+
+ import_modules = [
+ 'dateutil', 'dateutil.zoneinfo', 'dateutil.parser', 'dateutil.tz'
+ ]
+
+ version('2.8.0', sha256='c89805f6f4d64db21ed966fda138f8a5ed7a4fdbc1a8ee329ce1b74e3c74da9e')
+ version('2.7.5', sha256='88f9287c0174266bb0d8cedd395cfba9c58e87e5ad86b2ce58859bc11be3cf02')
+ version('2.5.2', 'eafe168e8f404bf384514f5116eedbb6')
+ version('2.4.2', '4ef68e1c485b09e9f034e10473e5add2')
+ version('2.4.0', '75714163bb96bedd07685cdb2071b8bc')
+ version('2.2', 'c1f654d0ff7e33999380a8ba9783fd5c')
+
+ depends_on('python@2.7:2.8,3.4:', type=('build', 'run'))
+ depends_on('py-setuptools@24.3:', type='build')
+ depends_on('py-six@1.5:', type=('build', 'run'))
+ # depends_on('py-pytest', type='test')
+ # depends_on('py-hypothesis', type='test')
+ # depends_on('py-freezegun', type='test')
+
+ def test(self):
+ # Tests require freezegun, which depends on python-dateutil,
+ # creating circular dependency
+ # pytest = which('pytest')
+ # pytest()
+ pass