diff options
author | Glenn Johnson <glenn-johnson@uiowa.edu> | 2021-04-06 14:36:53 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-06 14:36:53 -0500 |
commit | 442241d477a8d77f708354ec258a6bb4eab40bdc (patch) | |
tree | def45f30dcb3972c3d7e202b0228752b9cadbe2b /var | |
parent | a989521052f456e653b09955a22d4ffea7cf0c7a (diff) | |
download | spack-442241d477a8d77f708354ec258a6bb4eab40bdc.tar.gz spack-442241d477a8d77f708354ec258a6bb4eab40bdc.tar.bz2 spack-442241d477a8d77f708354ec258a6bb4eab40bdc.tar.xz spack-442241d477a8d77f708354ec258a6bb4eab40bdc.zip |
new package: py-python-box (#22814)
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/py-python-box/package.py | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-python-box/package.py b/var/spack/repos/builtin/packages/py-python-box/package.py new file mode 100644 index 0000000000..a80f0f0fa8 --- /dev/null +++ b/var/spack/repos/builtin/packages/py-python-box/package.py @@ -0,0 +1,31 @@ +# 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 PyPythonBox(PythonPackage): + """Advanced Python dictionaries with dot notation access + + Box will automatically make otherwise inaccessible keys safe to access as + an attribute. You can always pass conversion_box=False to Box to disable + that behavior. Also, all new dict and lists added to a Box or BoxList + object are converted automatically.""" + + homepage = "https://github.com/cdgriffith/Box" + pypi = "python-box/python-box-5.3.0.tar.gz" + + version('5.3.0', sha256='4ed4ef5d34de505a65c01e3f1911de8cdb29484fcae0c035141dce535c6c194a') + + variant('extras', + default=False, + description='install the "extras" packages') + + depends_on('python@3.6:', type=('build', 'run')) + depends_on('py-setuptools', type='build') + + depends_on('py-ruamel-yaml', when='+extras') + depends_on('py-toml', when='+extras') + depends_on('py-msgpack', when='+extras') |