New package: python3-pikepdf-2.9.0

This commit is contained in:
Philipp David 2021-03-08 18:04:10 +01:00 committed by Leah Neukirchen
parent 283c1db35c
commit 09a09350cf
3 changed files with 46 additions and 0 deletions

View file

@ -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]

View file

@ -0,0 +1,11 @@
--- setup.py
+++ setup.py
@@ -90,8 +90,6 @@ if __name__ == '__main__':
setup_requires=[
'setuptools >= 50',
'wheel >= 0.35',
- 'setuptools_scm[toml] >= 4.1',
- 'setuptools_scm_git_archive',
'pybind11 >= 2.6.0, <3',
],
extras_require={'docs': docs_require},

View file

@ -0,0 +1,24 @@
# Template file for 'python3-pikepdf'
pkgname=python3-pikepdf
version=2.9.0
revision=1
wrksrc="pikepdf-${version}"
build_style=python3-module
hostmakedepends="python3-pybind11 python3-setuptools 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 <pd@3b.pm>"
license="MPL-2.0"
homepage="https://github.com/pikepdf/pikepdf"
distfiles="${PYPI_SITE}/p/pikepdf/pikepdf-${version}.tar.gz"
checksum=a9dbd2bb52fcdecb066c99cacf96f0ebb40edee50d8885502a5a22d7f723a8b7
pre_build() {
vsed -i "s/__version__.*/__version__ = '${version}'/g" setup.py
}
do_check() {
PYTHONPATH=$(cd build/lib* && pwd) python3 -m pytest
}