diff --git a/var/spack/repos/builtin/packages/py-cairosvg/package.py b/var/spack/repos/builtin/packages/py-cairosvg/package.py new file mode 100644 index 0000000000..7310465482 --- /dev/null +++ b/var/spack/repos/builtin/packages/py-cairosvg/package.py @@ -0,0 +1,26 @@ +# Copyright 2013-2024 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 PyCairosvg(PythonPackage): + """ + CairoSVG is an SVG converter based on Cairo. + It can export SVG files to PDF, EPS, PS, and PNG files. + """ + + homepage = "https://cairosvg.org/" + pypi = "CairoSVG/CairoSVG-2.7.1.tar.gz" + + version("2.7.1", sha256="432531d72347291b9a9ebfb6777026b607563fd8719c46ee742db0aef7271ba0") + + depends_on("python@3.5:", type=("build", "run")) + depends_on("py-setuptools", type="build") + depends_on("py-cairocffi", type=("build", "run")) + depends_on("py-cssselect2", type=("build", "run")) + depends_on("py-defusedxml", type=("build", "run")) + depends_on("py-pillow", type=("build", "run")) + depends_on("py-tinycss2", type=("build", "run")) diff --git a/var/spack/repos/builtin/packages/py-cssselect2/package.py b/var/spack/repos/builtin/packages/py-cssselect2/package.py new file mode 100644 index 0000000000..a3acb25daf --- /dev/null +++ b/var/spack/repos/builtin/packages/py-cssselect2/package.py @@ -0,0 +1,23 @@ +# Copyright 2013-2024 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 PyCssselect2(PythonPackage): + """ + cssselect2 is a straightforward implementation of CSS4 Selectors for markup + documents (HTML, XML, etc.) that can be read by ElementTree-like parsers + (including cElementTree, lxml, html5lib, etc.) + """ + + homepage = "https://github.com/Kozea/cssselect2" + pypi = "cssselect2/cssselect2-0.7.0.tar.gz" + + version("0.7.0", sha256="1ccd984dab89fc68955043aca4e1b03e0cf29cad9880f6e28e3ba7a74b14aa5a") + depends_on("python@3.7:", type=("build", "run")) + depends_on("py-flit-core@3.2:3", type="build") + depends_on("py-tinycss2", type=("build", "run")) + depends_on("py-webencodings", type=("build", "run"))