summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-uncertainties/package.py
blob: d35cf7f96ed8207611a8fa9de3f8ee775777b433 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Copyright 2013-2022 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.package 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/"
    pypi = "uncertainties/uncertainties-3.1.4.tar.gz"

    version('3.1.6', sha256='7c4db5aaafd227e95485b61fba5d235dc8133aeecd98f8fc1224c038ce063e2d')
    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')