summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlpritch-lanl <65038207+lpritch-lanl@users.noreply.github.com>2020-05-13 08:47:01 -0600
committerGitHub <noreply@github.com>2020-05-13 16:47:01 +0200
commit043d50754052a7dca68ebd92160927859627563a (patch)
treed6151a948e57262fa118a6e129166b86c384ac06
parent308f016f31fda65c50534ef351cc4f7a6405c03d (diff)
downloadspack-043d50754052a7dca68ebd92160927859627563a.tar.gz
spack-043d50754052a7dca68ebd92160927859627563a.tar.bz2
spack-043d50754052a7dca68ebd92160927859627563a.tar.xz
spack-043d50754052a7dca68ebd92160927859627563a.zip
py-pint: added versions up to v0.11 (#16537)
Co-authored-by: Lori Pritchett-Sheats <lpritch@pn2002926.lanl.gov>
-rw-r--r--var/spack/repos/builtin/packages/py-pint/package.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/var/spack/repos/builtin/packages/py-pint/package.py b/var/spack/repos/builtin/packages/py-pint/package.py
index 6287cc76bd..fd2736f7c6 100644
--- a/var/spack/repos/builtin/packages/py-pint/package.py
+++ b/var/spack/repos/builtin/packages/py-pint/package.py
@@ -12,9 +12,15 @@ class PyPint(PythonPackage):
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"
+ homepage = "https://pypi.org/project/Pint"
+ url = "https://pypi.io/packages/source/p/pint/Pint-0.11.tar.gz"
+ version('0.11', sha256='308f1070500e102f83b6adfca6db53debfce2ffc5d3cbe3f6c367da359b5cf4d')
+ version('0.10.1', sha256='d739c364b8326fe3d70773d5720fa8b005ea6158695cad042677a588480c86e6')
+ version('0.10', sha256='38a4d6e242b8bab693cd83a5f5ade3d816463b498658e7ab14ce64c4d458c88b')
+ version('0.9', sha256='32d8a9a9d63f4f81194c0014b3b742679dce81a26d45127d9810a68a561fe4e2')
version('0.8.1', sha256='afcf31443a478c32bbac4b00337ee9026a13d0e2ac83d30c79151462513bb0d4')
- depends_on('py-setuptools', type='build')
+ depends_on('python@3.6:', type=('build', 'run'), when='@0.10:')
+ depends_on('py-setuptools', type=('build', ))
+ depends_on('py-setuptools-scm', type=('build', ))