summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvvolkl <valentin.volkl@cern.ch>2020-10-02 17:59:47 +0200
committerGitHub <noreply@github.com>2020-10-02 10:59:47 -0500
commitd1ae087960c51eedbcb194257ab242c2087ec411 (patch)
tree727a347b226259ae77fdaac13aa9379ea9a57e86
parent04f48034fb132aae498fbd9eb02675f4467b2858 (diff)
downloadspack-d1ae087960c51eedbcb194257ab242c2087ec411.tar.gz
spack-d1ae087960c51eedbcb194257ab242c2087ec411.tar.bz2
spack-d1ae087960c51eedbcb194257ab242c2087ec411.tar.xz
spack-d1ae087960c51eedbcb194257ab242c2087ec411.zip
add py-hepunits and py-particle (#19030)
Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com> [py-particle] format [py-particle] switch to pypi downloads [py-particle] specify dependencies in more details [py-particle] format Update var/spack/repos/builtin/packages/py-particle/package.py Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com> Update var/spack/repos/builtin/packages/py-particle/package.py Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com> Update var/spack/repos/builtin/packages/py-particle/package.py Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com> Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
-rw-r--r--var/spack/repos/builtin/packages/py-hepunits/package.py24
-rw-r--r--var/spack/repos/builtin/packages/py-particle/package.py31
2 files changed, 55 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-hepunits/package.py b/var/spack/repos/builtin/packages/py-hepunits/package.py
new file mode 100644
index 0000000000..d30fb48126
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-hepunits/package.py
@@ -0,0 +1,24 @@
+# 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 PyHepunits(PythonPackage):
+ """Units and constants in the HEP system of units."""
+
+ git = "https://github.com/scikit-hep/hepunits.git"
+ url = "https://pypi.io/packages/source/h/hepunits/hepunits-1.2.1.tar.gz"
+ homepage = "https://github.com/scikit-hep/hepunits"
+
+ maintainers = ['vvolkl']
+
+ version('master', branch='master')
+ version('1.2.1', sha256='b05b0dda32bf797806d506d7508d4eb23b78f34d67bbba9348a2b4a9712666fa')
+
+ depends_on('python@2.7:2.8,3.5:', type=('build', 'run'))
+ depends_on('py-setuptools', type='build')
+ depends_on('py-setuptools-scm', type='build')
+ depends_on('py-toml', type='build')
diff --git a/var/spack/repos/builtin/packages/py-particle/package.py b/var/spack/repos/builtin/packages/py-particle/package.py
new file mode 100644
index 0000000000..b8b03b21d0
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-particle/package.py
@@ -0,0 +1,31 @@
+# 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 PyParticle(PythonPackage):
+ """Particle provides a pythonic interface to the Particle Data Group (PDG)
+ particle data tables and particle identification codes, with extended
+ particle information and extra goodies."""
+
+ git = "https://github.com/scikit-hep/particle.git"
+ url = "https://pypi.io/packages/source/p/particle/particle-0.11.0.tar.gz"
+ homepage = "https://github.com/scikit-hep/particle"
+
+ maintainers = ['vvolkl']
+
+ version('master', branch='master')
+ version('0.11.0', sha256='e90dc36c8b7d7431bd14ee5a28486d28b6c0708555845d1d7bdf59a165405f12')
+
+ depends_on('python@2.7:2.8,3.5:', type=('build', 'run'))
+ depends_on('py-setuptools', type='build')
+
+ depends_on('py-attrs@19.2.0:', type=('build', 'run'))
+ depends_on('py-hepunits@1.2.0:', type=('build', 'run'))
+ depends_on('py-importlib-resources@1.0:', when='^python@:3.6', type=('build', 'run'))
+
+ depends_on('py-enum34@1.1:', when='^python@:3.3', type=('build', 'run'))
+ depends_on("py-typing@3.7:", when='^python@:3.4', type=('build', 'run'))