From f5cb0013d999a10e3d0748ea62fc83e7e0ca57c9 Mon Sep 17 00:00:00 2001 From: Eloi Torrents Date: Mon, 18 Jul 2022 15:50:23 +0200 Subject: [PATCH 1/3] New package: python3-cssselect2-0.6.0 --- srcpkgs/python3-cssselect2/template | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 srcpkgs/python3-cssselect2/template diff --git a/srcpkgs/python3-cssselect2/template b/srcpkgs/python3-cssselect2/template new file mode 100644 index 000000000000..0ceb08503f3a --- /dev/null +++ b/srcpkgs/python3-cssselect2/template @@ -0,0 +1,18 @@ +# Template file for 'python3-cssselect2' +pkgname=python3-cssselect2 +version=0.6.0 +revision=1 +wrksrc="cssselect2-${version}" +build_style=python3-pep517 +hostmakedepends="python3-setuptools python3-flit_core python3-webencodings python3-tinycss2" +depends="python3 python3-webencodings python3-tinycss2" +short_desc="CSS selectors for Python2 ElementTree" +maintainer="Eloi Torrents " +license="BSD-3-Clause" +homepage="https://cssselect2.readthedocs.io/" +distfiles="${PYPI_SITE}/c/${pkgname#*-}/${pkgname#*-}-${version}.tar.gz" +checksum=5b5d6dea81a5eb0c9ca39f116c8578dd413778060c94c1f51196371618909325 + +post_install() { + vlicense LICENSE +} From 442e5f11b9aa8656bbb4b59fdbcdde172d3c6f20 Mon Sep 17 00:00:00 2001 From: Eloi Torrents Date: Mon, 18 Jul 2022 15:55:14 +0200 Subject: [PATCH 2/3] New package: python3-tinycss2-1.1.1 --- srcpkgs/python3-tinycss2/template | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 srcpkgs/python3-tinycss2/template diff --git a/srcpkgs/python3-tinycss2/template b/srcpkgs/python3-tinycss2/template new file mode 100644 index 000000000000..976c1d860d87 --- /dev/null +++ b/srcpkgs/python3-tinycss2/template @@ -0,0 +1,20 @@ +# Template file for 'python3-tinycss2' +pkgname=python3-tinycss2 +version=1.1.1 +revision=1 +wrksrc="tinycss2-${version}" +build_style=python3-pep517 +hostmakedepends="python3-setuptools python3-flit_core python3-webencodings" +makedepends="python3-devel" +depends="python3-webencodings" +short_desc="Complete yet simple CSS parser for Python" +maintainer="Eloi Torrents " +license="BSD-3-Clause" +homepage="https://tinycss2.readthedocs.io/en/latest/" +changelog="https://doc.courtbouillon.org/tinycss2/latest/changelog.html" +distfiles="${PYPI_SITE}/t/tinycss2/tinycss2-${version}.tar.gz" +checksum=b2e44dd8883c360c35dd0d1b5aad0b610e5156c2cb3b33434634e539ead9d8bf + +post_install() { + vlicense LICENSE +} From e343c364c232d190797aa85fce9a9dc07750dd5f Mon Sep 17 00:00:00 2001 From: Eloi Torrents Date: Mon, 18 Jul 2022 15:56:18 +0200 Subject: [PATCH 3/3] New package: python3-CairoSVG-2.5.2 --- .../patches/pytest-runner.patch | 28 +++++++++++++++++++ srcpkgs/python3-CairoSVG/template | 16 +++++++++++ 2 files changed, 44 insertions(+) create mode 100644 srcpkgs/python3-CairoSVG/patches/pytest-runner.patch create mode 100644 srcpkgs/python3-CairoSVG/template diff --git a/srcpkgs/python3-CairoSVG/patches/pytest-runner.patch b/srcpkgs/python3-CairoSVG/patches/pytest-runner.patch new file mode 100644 index 000000000000..d325f1838add --- /dev/null +++ b/srcpkgs/python3-CairoSVG/patches/pytest-runner.patch @@ -0,0 +1,28 @@ +diff --git a/setup.cfg b/setup.cfg +index 463cf5f..7864c6b 100644 +--- a/setup.cfg ++++ b/setup.cfg +@@ -41,7 +41,6 @@ project_urls = + [options] + packages = cairosvg + setup_requires = +- pytest-runner + setuptools + install_requires = + cairocffi +@@ -53,7 +52,6 @@ tests_require = + pytest-cov + pytest-flake8 + pytest-isort +- pytest-runner + python_requires = >= 3.5 + + [options.entry_points] +@@ -68,7 +66,6 @@ doc = + sphinx + sphinx_rtd_theme + test = +- pytest-runner + pytest-cov + pytest-flake8 + pytest-isort diff --git a/srcpkgs/python3-CairoSVG/template b/srcpkgs/python3-CairoSVG/template new file mode 100644 index 000000000000..deebdeff6efa --- /dev/null +++ b/srcpkgs/python3-CairoSVG/template @@ -0,0 +1,16 @@ +# Template file for 'python3-CairoSVG' +pkgname=python3-CairoSVG +version=2.5.2 +revision=1 +wrksrc="${pkgname#*-}-${version}" +build_style=python3-module +hostmakedepends="python3-setuptools python3-webencodings python3-cssselect2 python3-tinycss2 python3-cairocffi python3-defusedxml" +depends="python3-cairocffi python3-cssselect2 python3-defusedxml python3-Pillow python3-tinycss2 python3-wheel python3-webencodings" +checkdepends="python3-pytest python3-pytest-cov python3-pytest-flake8 python3-wheel" +short_desc="Simple SVG Converter based on Cairo" +maintainer="Eloi Torrents " +license="LGPL-3.0-or-later" +homepage="https://cairosvg.org/" +changelog="https://github.com/Kozea/CairoSVG/blob/master/NEWS.rst" +distfiles="${PYPI_SITE}/C/CairoSVG/CairoSVG-${version}.tar.gz" +checksum=b0b9929cf5dba005178d746a8036fcf0025550f498ca54db61873322384783bc