summaryrefslogtreecommitdiff
path: root/main/py3-xmlschema/APKBUILD
blob: 0c47ccb7d98f0a4e8b963b717015da593d738286 (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
# Contributor: Aiden Grossman <agrossman154@yahoo.com>
# Maintainer: Aiden Grossman <agrossman154@yahoo.com>
pkgname=py3-xmlschema
pkgver=2.1.1
pkgrel=1
pkgdesc="XML schema validator and conversion library"
url="https://github.com/sissaschool/xmlschema"
arch="noarch"
license="MIT"
depends="py3-elementpath"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
source="$pkgname-$pkgver.tar.gz::https://github.com/sissaschool/xmlschema/archive/refs/tags/v$pkgver.tar.gz"
builddir="$srcdir/xmlschema-$pkgver/"

build() {
	python3 setup.py build
}

check() {
	# disabled test requires install/fake install
	pytest \
		--deselect tests/test_etree_import.py::TestElementTreeImport::test_element_tree_import_script
}

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

sha512sums="
ebedd5f144a3a483a52d8166379cecd52e40f8df94bdcbc723da869db867595a19988827b1a57977f7daa98c59e0f662ac1493490543386f62ea5fe5a8acc472  py3-xmlschema-2.1.1.tar.gz
"