From 00feccde3450e61339796e40c796d380ff6a14a3 Mon Sep 17 00:00:00 2001 From: Jen Herting Date: Tue, 23 Aug 2022 13:00:25 -0400 Subject: New package: py-loguru (#32074) * [py-loguru] New package * [py-loguru] Removed commented out line * [py-loguru] Added types removed extra dependencies * [py-loguru] missing windows dependency. listing windows as a conflict for now * [py-loguru] depends on py-colorama when platform=windows * [py-loguru] flake8 * [py-loguru] Import update * [py-loguru] - python is a runtime dependency - setuptools is a build dependency * [@spackbot] updating style on behalf of qwertos Co-authored-by: James A Zilberman Co-authored-by: qwertos --- .../repos/builtin/packages/py-loguru/package.py | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 var/spack/repos/builtin/packages/py-loguru/package.py (limited to 'var') 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") -- cgit v1.2.3-70-g09d2