diff options
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/py-loguru/package.py | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-loguru/package.py b/var/spack/repos/builtin/packages/py-loguru/package.py new file mode 100644 index 0000000000..b9bd61aabd --- /dev/null +++ b/var/spack/repos/builtin/packages/py-loguru/package.py @@ -0,0 +1,25 @@ +# 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.package import * + + +class PyLoguru(PythonPackage): + """Loguru is a library which aims to bring enjoyable logging in Python.""" + + homepage = "https://github.com/Delgan/loguru" + pypi = "loguru/loguru-0.6.0.tar.gz" + + version("0.6.0", sha256="066bd06758d0a513e9836fd9c6b5a75bfb3fd36841f4b996bc60b547a309d41c") + + depends_on("python@3.5:", type=("build", "run")) + depends_on("py-setuptools", type="build") + depends_on("py-aiocontextvars@0.2.0:", when="^python@3.6:", type=("build", "run")) + depends_on("py-colorama@0.3.4:", when="platform=windows", type=("build", "run")) + # Missing dependency required for windows + # depends_on('py-win32-setctime@1.0.0:', + # when='platform=windows', + # type=('build', 'run')) + conflicts("platform=windows") |