summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/py-correctionlib/package.py35
-rw-r--r--var/spack/repos/builtin/packages/py-make/package.py20
2 files changed, 55 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-correctionlib/package.py b/var/spack/repos/builtin/packages/py-correctionlib/package.py
new file mode 100644
index 0000000000..4d29711c80
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-correctionlib/package.py
@@ -0,0 +1,35 @@
+# 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 PyCorrectionlib(PythonPackage):
+ """A generic correction library"""
+
+ homepage = "https://github.com/cms-nanoAOD/correctionlib"
+ pypi = "correctionlib/correctionlib-2.0.0.tar.gz"
+
+ version('2.0.0', sha256='e4d240cbdb2633a8955ddcd02d5b9bfb33d7e1a33554d6f7957f2dec56988a67')
+
+ variant('convert', default=False,
+ description='Includes select conversion routines for common types')
+
+ depends_on('python@3.6:', type=('build', 'run'))
+ depends_on('py-setuptools@42:', type='build')
+ depends_on('py-setuptools-scm@3.4:+toml', type='build')
+ depends_on('py-scikit-build', type='build')
+ depends_on('py-cmake@3.11:', type='build')
+ depends_on('py-make', type='build')
+ depends_on('py-pybind11@2.6.1:', type='build')
+ depends_on('py-numpy@1.13.3:', type=('build', 'run'))
+ depends_on('py-typing', type=('build', 'run'), when='^python@:3.4')
+ depends_on('py-typing-extensions', type=('build', 'run'), when='^python@:3.7')
+ depends_on('py-dataclasses', type=('build', 'run'), when='^python@:3.6')
+ depends_on('py-pydantic@1.7.3:', type=('build', 'run'))
+ depends_on('py-rich', type=('build', 'run'))
+ depends_on('py-pandas', type=('build', 'run'), when='+convert')
+ depends_on('py-uproot@4.0.4:', type=('build', 'run'), when='+convert')
+ depends_on('py-requests', type=('build', 'run'), when='+convert')
diff --git a/var/spack/repos/builtin/packages/py-make/package.py b/var/spack/repos/builtin/packages/py-make/package.py
new file mode 100644
index 0000000000..4ec9a68fc4
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-make/package.py
@@ -0,0 +1,20 @@
+# 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 PyMake(PythonPackage):
+ """Create project layout from jinja2 templates"""
+
+ homepage = "https://github.com/fholmer/make"
+ git = "https://github.com/fholmer/make.git"
+
+ version('0.1.6.post2', commit='ce2ef5834837a35dba5f2bea8866b61c8907c83a')
+ version('0.1.6', commit='c6e2615d01d8d5f58181e39d0f594fe5baae3c5f')
+
+ depends_on('py-setuptools', type='build')
+ depends_on('py-jinja2', type=('build', 'run'))
+ depends_on('py-jinja2-time', type=('build', 'run'))