New package: py-correctionlib (#27882)
* New package: py-correctionlib * Update var/spack/repos/builtin/packages/py-correctionlib/package.py Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com> * Update var/spack/repos/builtin/packages/py-correctionlib/package.py Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com> * Add py-make and update py-correctionlib recipe * Add py-bind11 dependency * Update package.py * Update package.py Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
This commit is contained in:
parent
8b6bb245db
commit
140a2721e6
35
var/spack/repos/builtin/packages/py-correctionlib/package.py
Normal file
35
var/spack/repos/builtin/packages/py-correctionlib/package.py
Normal file
@ -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')
|
20
var/spack/repos/builtin/packages/py-make/package.py
Normal file
20
var/spack/repos/builtin/packages/py-make/package.py
Normal file
@ -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'))
|
Loading…
Reference in New Issue
Block a user