From a89fca40969f42cab88a9f2a06a3a33ca9f8b018 Mon Sep 17 00:00:00 2001 From: Philipp David Date: Sun, 12 Jun 2022 22:22:22 +0200 Subject: [PATCH] python3-pikepdf: update to 5.4.0. --- .../remove_pytest-xdist_dependency.patch | 19 ------------------- srcpkgs/python3-pikepdf/template | 15 ++++++++------- 2 files changed, 8 insertions(+), 26 deletions(-) delete mode 100644 srcpkgs/python3-pikepdf/patches/remove_pytest-xdist_dependency.patch diff --git a/srcpkgs/python3-pikepdf/patches/remove_pytest-xdist_dependency.patch b/srcpkgs/python3-pikepdf/patches/remove_pytest-xdist_dependency.patch deleted file mode 100644 index ea844d5e4d7c..000000000000 --- a/srcpkgs/python3-pikepdf/patches/remove_pytest-xdist_dependency.patch +++ /dev/null @@ -1,19 +0,0 @@ ---- a/pyproject.toml -+++ b/pyproject.toml -@@ -35,7 +35,7 @@ - ''' - - [tool.cibuildwheel] --test-command = "pytest -nauto {project}/tests" -+test-command = "pytest {project}/tests" - test-extras = "test" - skip = "cp310-*" - test-skip = "*_arm64 *_universal2:arm64" -@@ -82,7 +82,6 @@ - minversion = "6.0" - norecursedirs = ["lib", ".pc", ".git", "venv"] - testpaths = ["tests"] --addopts = "-n auto" - - [tool.coverage.run] - concurrency = ["multiprocessing"] diff --git a/srcpkgs/python3-pikepdf/template b/srcpkgs/python3-pikepdf/template index b742def96c97..406647b801a0 100644 --- a/srcpkgs/python3-pikepdf/template +++ b/srcpkgs/python3-pikepdf/template @@ -1,21 +1,22 @@ # Template file for 'python3-pikepdf' pkgname=python3-pikepdf -version=5.1.3 +version=5.4.0 revision=1 wrksrc="pikepdf-${version}" build_style=python3-module hostmakedepends="python3-pybind11 python3-setuptools_scm python3-wheel" makedepends="libqpdf-devel python3-pybind11" -depends="python3-lxml python3-packaging python3-Pillow python3-setuptools" -checkdepends="python3-dateutil python3-hypothesis python3-psutil python3-pytest - $depends" +depends="jbig2dec python3-deprecation python3-lxml python3-packaging + python3-Pillow python3-setuptools" +checkdepends="poppler python3-dateutil python3-hypothesis python3-psutil + python3-pytest python3-pytest-timeout python3-pytest-xdist $depends" 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=c34e4239661d2ddf23caa1c4256f636c866ce8069a5052a2bf8ee06e3cae22f3 +checksum=d397a061959a5cd7d9869a381dda005eccfef59c33dd3eba6a8e19ce036168be -pre_build() { - vsed -e '/setuptools_scm_git_archive/d' -i setup.py +pre_check() { + cp -r src/pikepdf.egg-info "$(cd build/lib* && pwd)" }