summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSinan <sbulutw@gmail.com>2020-06-11 08:26:43 -0700
committerGitHub <noreply@github.com>2020-06-11 08:26:43 -0700
commitb50b930d6a5af82e04dc61788a919e2e2d0b4561 (patch)
tree85cd41eae82c0c8775031b5f26ede0bac7778abd
parent9820a23abd06efd003464f65c84e726479a97a2b (diff)
downloadspack-b50b930d6a5af82e04dc61788a919e2e2d0b4561.tar.gz
spack-b50b930d6a5af82e04dc61788a919e2e2d0b4561.tar.bz2
spack-b50b930d6a5af82e04dc61788a919e2e2d0b4561.tar.xz
spack-b50b930d6a5af82e04dc61788a919e2e2d0b4561.zip
New package: py-uncertainties (#16997)
-rw-r--r--var/spack/repos/builtin/packages/py-uncertainties/package.py26
1 files changed, 26 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-uncertainties/package.py b/var/spack/repos/builtin/packages/py-uncertainties/package.py
new file mode 100644
index 0000000000..67a9ee0cc5
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-uncertainties/package.py
@@ -0,0 +1,26 @@
+# Copyright 2013-2020 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 PyUncertainties(PythonPackage):
+ """Transparent calculations with uncertainties on the quantities involved
+ (aka error propagation); fast calculation of derivatives
+ """
+
+ homepage = "https://uncertainties-python-package.readthedocs.io/en/latest/"
+ url = "https://pypi.io/packages/source/u/uncertainties/uncertainties-3.1.4.tar.gz"
+
+ version('3.1.4', sha256='63548a94899f2a51eeb89b640f6ac311f481a8016b37dce157186e44619bc968')
+
+ variant('optional', default=False, description='Enable extra features involving numpy')
+ variant('docs', default=False, description='Build with documentation')
+
+ depends_on('python@2.7:', type=('build', 'run'))
+ depends_on('py-setuptools', type='build')
+ depends_on('py-future', type=('build', 'run'))
+ depends_on('py-numpy', type=('build', 'run'), when='+optional')
+ depends_on('py-sphinx', type='build', when='+docs')