diff options
author | Pat Riehecky <3534830+jcpunk@users.noreply.github.com> | 2022-01-28 15:23:25 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-28 14:23:25 -0700 |
commit | 6f3670d1eb2199134f3d57ac27c6ebb467cb711f (patch) | |
tree | 60fa391d3a56a94e20ed69f438e2475d1fdf8915 | |
parent | f189e5eb1cb1bea548e4097ac02b064f25d25bb9 (diff) | |
download | spack-6f3670d1eb2199134f3d57ac27c6ebb467cb711f.tar.gz spack-6f3670d1eb2199134f3d57ac27c6ebb467cb711f.tar.bz2 spack-6f3670d1eb2199134f3d57ac27c6ebb467cb711f.tar.xz spack-6f3670d1eb2199134f3d57ac27c6ebb467cb711f.zip |
New Package: py-python-dotenv (#28651)
-rw-r--r-- | var/spack/repos/builtin/packages/py-python-dotenv/package.py | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-python-dotenv/package.py b/var/spack/repos/builtin/packages/py-python-dotenv/package.py new file mode 100644 index 0000000000..514154d93f --- /dev/null +++ b/var/spack/repos/builtin/packages/py-python-dotenv/package.py @@ -0,0 +1,24 @@ +# Copyright 2013-2022 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 PyPythonDotenv(PythonPackage): + """Read key-value pairs from a .env file and set them as environment variables""" + + homepage = "https://github.com/theskumar/python-dotenv" + pypi = "python-dotenv/python-dotenv-0.19.2.tar.gz" + + maintainers = ['jcpunk'] + + version('0.19.2', sha256='a5de49a31e953b45ff2d2fd434bbc2670e8db5273606c1e737cc6b93eff3655f') + + variant('cli', default=False, description="Add commandline tools") + + depends_on('python@3.5:', type=('build', 'run')) + depends_on('py-setuptools', type='build') + + depends_on('py-click@5:', when="+cli", type=('build', 'run')) |