aboutsummaryrefslogtreecommitdiffstats
path: root/main/py3-yaml/APKBUILD
blob: 6180fc949d8501d899d08adf841ba2fe1f013eca (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.1
pkgrel=1
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="bcbe911fbef7e6e8ef8a76293593d4d792dbbf0931a2d031cdeacddf7064b69f958484217bc60d1b7614dcc83ef56cd5c0cd48a0339ab9add623ef70cb2d0a20  PyYAML-5.4.1.1.tar.gz"