aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-defusedxml/APKBUILD
blob: 9ff50c717eddd2d6ad3b3135b085ec80f99a1987 (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
# Contributor: Roberto Oliveira <robertoguimaraes8@gmail.com>
# Maintainer: Roberto Oliveira <robertoguimaraes8@gmail.com>
pkgname=py3-defusedxml
_pkgname=defusedxml
pkgver=0.5.0
pkgrel=1
pkgdesc="XML bomb protection for Python stdlib modules"
url="https://github.com/tiran/defusedxml"
arch="noarch"
license="GPL"
depends="python3"
makedepends="py3-setuptools"
source="$pkgname-$pkgver.tar.gz::https://github.com/tiran/defusedxml/archive/v$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

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

build() {
        python3 setup.py build
}

check() {
        python3 setup.py test
}

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

sha512sums="38685b8de49b61cf0e4b2c69a6d6b48a14beb6f68a0445cd2de557f3530bef2619a2c02b7c290db8a0530b01a74f81b1aac460ebe8cf92df0fb1e825307781d2  py3-defusedxml-0.5.0.tar.gz"