summaryrefslogtreecommitdiff
path: root/community/py3-xmltodict/APKBUILD
blob: b04716d9d3f2cb934707e6d84aafb129e2e93b7c (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
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-xmltodict
_realname=xmltodict
pkgver=0.13.0
pkgrel=1
pkgdesc="an xmltodict implementation"
url="https://pypi.python.org/pypi/xmltodict/"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-setuptools"
checkdepends="py3-nose py3-coverage"
source="$pkgname-$pkgver.tar.gz::https://github.com/martinblech/$_realname/archive/v$pkgver.tar.gz"
builddir="$srcdir/$_realname-$pkgver"

replaces="py-xmltodict" # Backward compat
provides="py-xmltodict=$pkgver-r$pkgrel" # Backward compat

build() {
	python3 setup.py build
}

check() {
	nosetests
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
a7c12efa3c8d9b30a36a4b0ed2a8215f9833728d7988e74ef36458790a786c4c7517e536e8a82939623069716cdff258da5aab378a74f884a0fa245e7951f0bf  py3-xmltodict-0.13.0.tar.gz
"