summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorKelly (KT) Thompson <KineticTheory@users.noreply.github.com>2018-12-04 07:58:12 -0700
committerAdam J. Stewart <ajstewart426@gmail.com>2018-12-04 08:58:11 -0600
commit4d26faac81a808145729c652f124a890c7b156e8 (patch)
treee1b57606d551de9af838f0f370808a2b7dba132e /var
parentb471e2768b3df4ee5afbcde9f780ac80ceeb6724 (diff)
downloadspack-4d26faac81a808145729c652f124a890c7b156e8.tar.gz
spack-4d26faac81a808145729c652f124a890c7b156e8.tar.bz2
spack-4d26faac81a808145729c652f124a890c7b156e8.tar.xz
spack-4d26faac81a808145729c652f124a890c7b156e8.zip
Provide a new spackage for py-pint. (#9991)
* Provide a new spackage for py-pint. Pint is a Python package to define, operate and manipulate physical quantities: the product of a numerical value and a unit of measurement. It allows arithmetic operations between them and conversions from and to different units. https://pint.readthedocs.io/en/latest/ * Switch hash from md5 to sha256.
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/py-pint/package.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-pint/package.py b/var/spack/repos/builtin/packages/py-pint/package.py
new file mode 100644
index 0000000000..db3145880c
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-pint/package.py
@@ -0,0 +1,20 @@
+# Copyright 2013-2018 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 PyPint(PythonPackage):
+ """Pint is a Python package to define, operate and manipulate physical
+ quantities: the product of a numerical value and a unit of measurement.
+ It allows arithmetic operations between them and conversions from and
+ to different units."""
+
+ homepage = "https://pypi.python.org/pypi/pint"
+ url = "https://pypi.io/packages/source/p/pint/Pint-0.8.1.tar.gz"
+
+ version('0.8.1', 'afcf31443a478c32bbac4b00337ee9026a13d0e2ac83d30c79151462513bb0d4')
+
+ depends_on('py-setuptools', type='build')