blob: 7df9e51410fb217074177aa26238048118005467 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
# Maintainer: Carl Smedstad <carl.smedstad at protonmail dot com>
# Contributor: Michał Wojdyła < micwoj9292 at gmail dot com >
pkgname=python-pyhanko
_name=pyHanko
pkgver=0.19.0
pkgrel=1
pkgdesc="Tools for stamping and signing PDF files"
url="https://github.com/MatthiasValvekens/pyHanko"
license=(MIT)
arch=(any)
makedepends=(
python-build
python-installer
python-wheel
)
checkdepends=(
certomancer
python-barcode
python-defusedxml
python-fonttools
python-freezegun
python-pytest
python-pytest-aiohttp
python-requests-mock
python-uharfbuzz
)
depends=(
python-aiohttp
python-click
python-dateutil
python-pillow
python-pyhanko-certvalidator
python-python-pkcs11
python-pyyaml
python-qrcode
python-tzlocal
)
optdepends=(
'python-uharfbuzz: to use OpenType fonts'
'python-fonttools: to use OpenType fonts'
'python-defusedxml: to use XMP'
'python-barcode: for image support'
)
source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('cc7baf37a7dbe926cb8950e210fb0cb80261a79fa22df690a09271847b1bd4a7')
_archive="$_name-$pkgver"
build() {
cd "$_archive"
python -m build --wheel --no-isolation
}
check() {
cd "$_archive"
python -m pytest \
--ignore pyhanko_tests/test_csc.py
}
package() {
cd "$_archive"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|