From 8f45b27836792d75f1f05e878f9f704b4a90d749 Mon Sep 17 00:00:00 2001 From: iarspider Date: Sat, 23 Jan 2021 23:27:42 +0100 Subject: [PATCH] New package: py-bigfloat (#21239) * New package: py-bigfloat * Changes from review --- .../builtin/packages/py-bigfloat/package.py | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 var/spack/repos/builtin/packages/py-bigfloat/package.py diff --git a/var/spack/repos/builtin/packages/py-bigfloat/package.py b/var/spack/repos/builtin/packages/py-bigfloat/package.py new file mode 100644 index 0000000000..d6f709e769 --- /dev/null +++ b/var/spack/repos/builtin/packages/py-bigfloat/package.py @@ -0,0 +1,21 @@ +# Copyright 2013-2021 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 PyBigfloat(PythonPackage): + """Arbitrary-precision correctly-rounded floating-point arithmetic, via MPFR.""" + + homepage = "http://github.com/mdickinson/bigfloat" + pypi = "bigfloat/bigfloat-0.4.0.tar.gz" + + version('0.4.0', sha256='58b96bde872aca5989d13d82eba3acf2aa1b94e22117dd72a16ba5911b0c0cb8') + + depends_on('python@2.7:2.8,3.5:', type=('build', 'run')) + depends_on('py-setuptools', type='build') + depends_on('py-six', type=('build', 'run')) + depends_on('gmp', type='link') + depends_on('mpfr', type=('build', 'link'))