aboutsummaryrefslogtreecommitdiffstats
path: root/main/py3-yaml/APKBUILD
blob: 5b02b58ad76239ad3a0ca19d52da8e2d0a3802f1 (plain) (blame)
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
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-yaml
_pkgname=PyYAML
pkgver=5.4.1
pkgrel=0
pkgdesc="Python3 bindings for YAML"
url="https://pyyaml.org"
arch="all"
license="MIT"
depends="python3"
makedepends="python3-dev yaml-dev cython py3-setuptools"
source="$_pkgname-$pkgver.tar.gz::https://github.com/yaml/pyyaml/archive/$pkgver.tar.gz"
builddir="$srcdir/pyyaml-$pkgver"

replaces="py-yaml" # Backwards compatibility
provides="py-yaml=$pkgver-r$pkgrel" # Backwards compatibility

# secfixes:
#   5.4-r0:
#     - CVE-2020-14343
#   5.3.1-r0:
#     - CVE-2020-1747

prepare() {
	default_prepare
	rm -f ext/_yaml.c
}

build() {
	python3 setup.py --with-libyaml build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="691e54fd9ca01fdc0dcb7de03ddd1970614d92a716c2437032999f9001f90a2ebbcc195a49bfdbe54da0f7a63178c83b02b05b18b5b1024127013f004d1f5997  PyYAML-5.4.1.tar.gz"