summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam J. Stewart <ajstewart426@gmail.com>2019-06-16 01:41:28 -0500
committerGreg Becker <becker33@llnl.gov>2019-06-16 08:41:27 +0200
commit07a90b214b84cffd41ecc7d5a91e00f454dbe162 (patch)
tree9b2753f5c09e3a3bb45773d0de918ddb3422ec8d
parent639cb1732296f54190db58ec3fbb0500274e4182 (diff)
downloadspack-07a90b214b84cffd41ecc7d5a91e00f454dbe162.tar.gz
spack-07a90b214b84cffd41ecc7d5a91e00f454dbe162.tar.bz2
spack-07a90b214b84cffd41ecc7d5a91e00f454dbe162.tar.xz
spack-07a90b214b84cffd41ecc7d5a91e00f454dbe162.zip
Add new package py-freezegun (#11718)
-rw-r--r--var/spack/repos/builtin/packages/py-freezegun/package.py25
1 files changed, 25 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-freezegun/package.py b/var/spack/repos/builtin/packages/py-freezegun/package.py
new file mode 100644
index 0000000000..30008e4cc6
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-freezegun/package.py
@@ -0,0 +1,25 @@
+# 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 PyFreezegun(PythonPackage):
+ """FreezeGun is a library that allows your Python tests to travel
+ through time by mocking the datetime module."""
+
+ homepage = "https://github.com/spulec/freezegun"
+ url = "https://pypi.io/packages/source/f/freezegun/freezegun-0.3.12.tar.gz"
+
+ import_modules = ['freezegun']
+
+ version('0.3.12', sha256='2a4d9c8cd3c04a201e20c313caf8b6338f1cfa4cda43f46a94cc4a9fd13ea5e7')
+
+ depends_on('py-setuptools', type='build')
+ depends_on('py-six', type=('build', 'run'))
+ depends_on('py-python-dateutil@1.0:1.999', type=('build', 'run'), when='^python@:2')
+ depends_on('py-python-dateutil@2:', type=('build', 'run'), when='^python@3:')
+ depends_on('py-mock', type='test')
+ depends_on('py-nose', type='test')