blob: 0ac908ba1706583f38df8778361fb6c94504c7e9 (
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
|
# Maintainer: Carl Smedstad <carl.smedstad at protonmail dot com>
# Contributor: Michał Wojdyła < micwoj9292 at gmail dot com >
pkgname=python-pyhanko-certvalidator
_pkgname=certvalidator
pkgver=0.26.4
pkgrel=1
pkgdesc="Validates X.509 certificates and paths"
url="https://github.com/MatthiasValvekens/certvalidator"
license=(MIT)
arch=(any)
depends=(
python
python-aiohttp
python-asn1crypto
python-cryptography
python-oscrypto
python-requests
python-uritools
)
makedepends=(
python-build
python-installer
python-setuptools
python-wheel
)
checkdepends=(
python-freezegun
python-pytest
python-pytest-asyncio
)
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
sha256sums=('a63f70ee391066e23a457a7ea8c8e0ccff82f31ac947da0300378ddbe99c2cfd')
_archive="$_pkgname-$pkgver"
build() {
cd "$_archive"
python -m build --wheel --no-isolation --skip-dependency-check
}
check() {
cd "$_archive"
pytest
}
package() {
cd "$_archive"
python -m installer -d "$pkgdir" dist/*.whl
install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
}
|