diff --git a/packages/py-etils/package.py b/packages/py-etils/package.py new file mode 100644 index 0000000000000000000000000000000000000000..6fd0d1887ffbea0b3bf8ee690cf30a194e1b4d27 --- /dev/null +++ b/packages/py-etils/package.py @@ -0,0 +1,26 @@ +# Copyright 2013-2023 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 PyEtils(PythonPackage): + """etils (eclectic utils) is an open-source collection of utils + for python.""" + + homepage = "https://github.com/google/etils" + pypi = "etils/etils-0.9.0.tar.gz" + + version("0.9.0", sha256="489103e9e499a566765c60458ee15d185cf0065f2060a4d16a68f8f46962ed0d") + + variant("epath", default=False, description="with epath module") + + depends_on("python@3.7:", type=("build", "run")) + + depends_on("py-importlib-resources", type=("build", "run"), when="+epath") + depends_on("py-typing-extensions", type=("build", "run"), when="+epath") + depends_on("py-zipp", type=("build", "run"), when="+epath") + + depends_on("py-flit-core@3.5:3", type="build")