From 7861eeb05ce314caf9e18568d8f3d45aa666e5d0 Mon Sep 17 00:00:00 2001 From: Eloi Torrents Date: Mon, 1 Aug 2022 09:17:30 +0200 Subject: [PATCH 1/4] New package: python3-pytest-isort-3.0.0 --- srcpkgs/python3-pytest-isort/template | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 srcpkgs/python3-pytest-isort/template diff --git a/srcpkgs/python3-pytest-isort/template b/srcpkgs/python3-pytest-isort/template new file mode 100644 index 000000000000..9388aeb14b93 --- /dev/null +++ b/srcpkgs/python3-pytest-isort/template @@ -0,0 +1,16 @@ +# Template file for 'python3-pytest-isort' +pkgname=python3-pytest-isort +version=3.0.0 +revision=1 +wrksrc="${pkgname#python3-}-${version}" +build_style=python3-module +hostmakedepends="python3-setuptools python3-setuptools_scm" +depends="python3-pytest python3-isort" +checkdepends="python3-pytest python3-wheel" +short_desc="Pytest plugin to check import ordering using isort" +maintainer="Eloi Torrents " +license="MIT" +homepage="https://pypi.org/project/pytest-isort" +changelog="https://github.com/stephrdev/pytest-isort/blob/master/CHANGELOG.rst" +distfiles="${PYPI_SITE}/p/pytest-isort/pytest-isort-${version}.tar.gz" +checksum=4fe4b26ead2af776730ec23f5870d7421f35aace22a41c4e938586ef4d8787cb From 86cadf0f94f0e4c4ac3e2189bc246aea3e89e816 Mon Sep 17 00:00:00 2001 From: Eloi Torrents Date: Mon, 18 Jul 2022 15:50:23 +0200 Subject: [PATCH 2/4] 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 cfbf70de4e8bc814e5cdfed75e3dbdc2cfbadbd4 Mon Sep 17 00:00:00 2001 From: Eloi Torrents Date: Mon, 18 Jul 2022 15:55:14 +0200 Subject: [PATCH 3/4] 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 3221b0d58b426c77e49d52cfa56bce287663d2a2 Mon Sep 17 00:00:00 2001 From: Eloi Torrents Date: Mon, 18 Jul 2022 15:56:18 +0200 Subject: [PATCH 4/4] New package: python3-CairoSVG-2.5.2 --- .../patches/pytest-runner.patch | 31 +++++++++++++++++++ srcpkgs/python3-CairoSVG/template | 16 ++++++++++ 2 files changed, 47 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..238d2d8cbbbf --- /dev/null +++ b/srcpkgs/python3-CairoSVG/patches/pytest-runner.patch @@ -0,0 +1,31 @@ +diff --git a/setup.cfg b/setup.cfg +index a18eda7..f84758d 100644 +--- a/setup.cfg ++++ b/setup.cfg +@@ -41,7 +41,6 @@ project_urls = + [options] + packages = cairosvg + setup_requires = +- pytest-runner + setuptools + install_requires = + cairocffi +@@ -50,10 +49,8 @@ install_requires = + pillow + tinycss2 + tests_require = +- pytest-cov + pytest-flake8 + pytest-isort +- pytest-runner + python_requires = >= 3.5 + + [options.entry_points] +@@ -68,7 +65,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..9295fb6d1e7f --- /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-pytest-isort 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