From 6624d01e148d8474f363f6ed2f88c69697dd6964 Mon Sep 17 00:00:00 2001 From: Philipp David Date: Tue, 9 Mar 2021 11:25:25 +0100 Subject: [PATCH 1/3] New package: python3-setuptools_scm_git_archive-1.1 --- .../template | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 srcpkgs/python3-setuptools_scm_git_archive/template diff --git a/srcpkgs/python3-setuptools_scm_git_archive/template b/srcpkgs/python3-setuptools_scm_git_archive/template new file mode 100644 index 00000000000..9b025407c4f --- /dev/null +++ b/srcpkgs/python3-setuptools_scm_git_archive/template @@ -0,0 +1,22 @@ +# Template file for 'python3-setuptools_scm_git_archive' +pkgname=python3-setuptools_scm_git_archive +version=1.1 +revision=1 +wrksrc="setuptools_scm_git_archive-${version}" +build_style=python3-module +hostmakedepends="python3-setuptools_scm" +checkdepends="python3-pytest" +short_desc="Setuptools_scm plugin that adds support for git archives" +maintainer="Philipp David " +license="MIT" +homepage="https://github.com/Changaco/setuptools_scm_git_archive" +distfiles="${PYPI_SITE}/s/setuptools_scm_git_archive/setuptools_scm_git_archive-${version}.tar.gz" +checksum=6026f61089b73fa1b5ee737e95314f41cb512609b393530385ed281d0b46c062 + +do_check() { + python3 setup.py test ${make_check_args} +} + +post_install() { + vlicense LICENSE +} From 4321afdd1210d7cf262bcf6bb08ce37e0bd051b0 Mon Sep 17 00:00:00 2001 From: Philipp David Date: Mon, 8 Mar 2021 18:04:10 +0100 Subject: [PATCH 2/3] New package: python3-pikepdf-2.8.0.post1 --- .../remove_pytest-xdist_dependency.patch | 11 ++++++++++ srcpkgs/python3-pikepdf/template | 20 +++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 srcpkgs/python3-pikepdf/patches/remove_pytest-xdist_dependency.patch create mode 100644 srcpkgs/python3-pikepdf/template diff --git a/srcpkgs/python3-pikepdf/patches/remove_pytest-xdist_dependency.patch b/srcpkgs/python3-pikepdf/patches/remove_pytest-xdist_dependency.patch new file mode 100644 index 00000000000..27d129188df --- /dev/null +++ b/srcpkgs/python3-pikepdf/patches/remove_pytest-xdist_dependency.patch @@ -0,0 +1,11 @@ +--- setup.cfg ++++ setup.cfg +@@ -7,8 +7,6 @@ test=pytest + [tool:pytest] + norecursedirs = lib .pc .git venv + testpaths = tests +-addopts = +- -n auto + + [coverage:run] + diff --git a/srcpkgs/python3-pikepdf/template b/srcpkgs/python3-pikepdf/template new file mode 100644 index 00000000000..1cf9f43ec27 --- /dev/null +++ b/srcpkgs/python3-pikepdf/template @@ -0,0 +1,20 @@ +# Template file for 'python3-pikepdf' +pkgname=python3-pikepdf +version=2.8.0.post1 +revision=1 +wrksrc="pikepdf-${version}" +build_style=python3-module +hostmakedepends="python3-pybind11 python3-setuptools python3-setuptools_scm python3-setuptools_scm_git_archive python3-toml python3-wheel" +makedepends="libqpdf-devel python3-pybind11" +depends="python3-lxml python3-Pillow" +checkdepends="python3-dateutil python3-hypothesis python3-lxml python3-Pillow python3-psutil python3-pytest" +short_desc="Python library for reading and writing PDF files" +maintainer="Philipp David " +license="MPL-2.0" +homepage="https://github.com/pikepdf/pikepdf" +distfiles="${PYPI_SITE}/p/pikepdf/pikepdf-${version}.tar.gz" +checksum=f742acfd2c41ceff0ade2dec8ddc4875ce0a75f51f5e943b56f4d741ab54b122 + +do_check() { + PYTHONPATH="build/lib.linux-${XBPS_MACHINE}-${py3_ver}" python3 -m pytest +} From 8805a8a9a10df5a16de92d4b958c805a783ed390 Mon Sep 17 00:00:00 2001 From: Philipp David Date: Mon, 8 Mar 2021 18:04:18 +0100 Subject: [PATCH 3/3] New package: img2pdf-0.4.0 --- srcpkgs/img2pdf/template | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 srcpkgs/img2pdf/template diff --git a/srcpkgs/img2pdf/template b/srcpkgs/img2pdf/template new file mode 100644 index 00000000000..986ed838de9 --- /dev/null +++ b/srcpkgs/img2pdf/template @@ -0,0 +1,14 @@ +# Template file for 'img2pdf' +pkgname=img2pdf +version=0.4.0 +revision=1 +build_style=python3-module +hostmakedepends="python3-pikepdf python3-setuptools" +depends="python3-Pillow python3-tkinter" +checkdepends="python3-pytest" +short_desc="Lossless conversion of raster images to PDF" +maintainer="Philipp David " +license="GPL-3.0-or-later" +homepage="https://gitlab.mister-muffin.de/josch/img2pdf" +distfiles="${PYPI_SITE}/i/img2pdf/img2pdf-${version}.tar.gz" +checksum=eaee690ab8403dd1a9cb4db10afee41dd3e6c7ed63bdace02a0121f9feadb0c9