add py-cairosvg py-cssselect2 (#42067)
* add py-cairosvg py-cssselect2 * Update package.py add homepage * Update package.py add homepage
This commit is contained in:
parent
5b1b97aa49
commit
1ce81fc299
2 changed files with 49 additions and 0 deletions
26
var/spack/repos/builtin/packages/py-cairosvg/package.py
Normal file
26
var/spack/repos/builtin/packages/py-cairosvg/package.py
Normal file
|
@ -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"))
|
23
var/spack/repos/builtin/packages/py-cssselect2/package.py
Normal file
23
var/spack/repos/builtin/packages/py-cssselect2/package.py
Normal file
|
@ -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"))
|
Loading…
Reference in a new issue