From c61da8381c656ad3187755033913b0b948e57f05 Mon Sep 17 00:00:00 2001 From: Lydéric Debusschère Date: Fri, 1 Dec 2023 14:53:02 +0100 Subject: py-sphinx-jinja2-compat: new package (#41310) * [add] py-sphinx-jinja2-compat: new package * py-whey-pth: new package, dependence of py-sphinx-jinja2-compat --------- Co-authored-by: LydDeb --- .../packages/py-sphinx-jinja2-compat/package.py | 22 ++++++++++++++++++++++ .../repos/builtin/packages/py-whey-pth/package.py | 22 ++++++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 var/spack/repos/builtin/packages/py-sphinx-jinja2-compat/package.py create mode 100644 var/spack/repos/builtin/packages/py-whey-pth/package.py (limited to 'var') diff --git a/var/spack/repos/builtin/packages/py-sphinx-jinja2-compat/package.py b/var/spack/repos/builtin/packages/py-sphinx-jinja2-compat/package.py new file mode 100644 index 0000000000..19161be55d --- /dev/null +++ b/var/spack/repos/builtin/packages/py-sphinx-jinja2-compat/package.py @@ -0,0 +1,22 @@ +# 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 PySphinxJinja2Compat(PythonPackage): + """Patches Jinja2 v3 to restore compatibility with earlier Sphinx versions.""" + + homepage = "https://github.com/sphinx-toolbox/sphinx-jinja2-compat" + pypi = "sphinx_jinja2_compat/sphinx_jinja2_compat-0.2.0.tar.gz" + + maintainers("LydDeb") + + version("0.2.0", sha256="c41346d859653e202b623f4236da8936243ed734abf5984adc3bef59d6f9a946") + + depends_on("py-whey", type="build") + depends_on("py-whey-pth", type="build") + depends_on("py-jinja2@2.10:", type=("build", "run")) + depends_on("py-markupsafe@1:", type=("build", "run")) diff --git a/var/spack/repos/builtin/packages/py-whey-pth/package.py b/var/spack/repos/builtin/packages/py-whey-pth/package.py new file mode 100644 index 0000000000..60f18dfee5 --- /dev/null +++ b/var/spack/repos/builtin/packages/py-whey-pth/package.py @@ -0,0 +1,22 @@ +# 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 PyWheyPth(PythonPackage): + """Extension to whey to support .pth files.""" + + homepage = "https://github.com/repo-helper/whey-pth" + pypi = "whey-pth/whey-pth-0.0.5.tar.gz" + + maintainers("LydDeb") + + version("0.0.5", sha256="cbfcc723bc587ecde44c6b0c83270673d38d88c3fc8f8268a49b21db1fd60747") + + depends_on("py-wheel@0.34.2:", type="build") + depends_on("py-setuptools@40.6.0:60,62:", type="build") + depends_on("py-dom-toml@0.4.0:", type=("build", "run")) + depends_on("py-whey@0.0.15:", type=("build", "run")) -- cgit v1.2.3-70-g09d2