summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorLydéric Debusschère <lyderic.de@gmail.com>2023-12-01 14:53:02 +0100
committerGitHub <noreply@github.com>2023-12-01 07:53:02 -0600
commitc61da8381c656ad3187755033913b0b948e57f05 (patch)
tree70d3c58f82b4ba881caef426ed565f58440b1b4c /var
parent8de814eddf9b43a237552e8405f98b80f8c67f11 (diff)
downloadspack-c61da8381c656ad3187755033913b0b948e57f05.tar.gz
spack-c61da8381c656ad3187755033913b0b948e57f05.tar.bz2
spack-c61da8381c656ad3187755033913b0b948e57f05.tar.xz
spack-c61da8381c656ad3187755033913b0b948e57f05.zip
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 <lyderic.debusschere@eolen.com>
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/py-sphinx-jinja2-compat/package.py22
-rw-r--r--var/spack/repos/builtin/packages/py-whey-pth/package.py22
2 files changed, 44 insertions, 0 deletions
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"))