py-omegaconf: add new package (#25052)

* Adding package for omegaconf

* Update var/spack/repos/builtin/packages/py-omegaconf/package.py

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>

* Changing py-omegaconf to use github source URL instead of pypi

* Style fix

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
This commit is contained in:
Caleb Robinson 2021-07-22 21:37:36 -07:00 committed by GitHub
parent b89286d0de
commit 0c65433dd3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,27 @@
# 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 PyOmegaconf(PythonPackage):
"""A hierarchical configuration system, with support for merging configurations from
multiple sources (YAML config files, dataclasses/objects and CLI arguments)
providing a consistent API regardless of how the configuration was created.
"""
homepage = "https://github.com/omry/omegaconf"
url = 'https://github.com/omry/omegaconf/archive/refs/tags/v2.1.0.tar.gz'
maintainers = ['calebrob6']
version('2.1.0', sha256='0168f962822b7059c7553c4346541596ea48c0b542628d41a348a12eeaf971ff')
depends_on('python@3.6:', type=('build', 'run'))
depends_on('py-setuptools', type='build')
depends_on('py-antlr4-python3-runtime@4.8', type=('build', 'run'))
depends_on('py-pyyaml@5.1.0:', type=('build', 'run'))
depends_on('py-dataclasses', when='^python@:3.6', type=('build', 'run'))