# Description: An XML Schema validator and decoder
# URL: https://github.com/sissaschool/xmlschema
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: python3-build python3-elementpath python3-installer python3-wheel

name=python3-xmlschema
version=2.4.0
release=1
source=(https://pypi.org/packages/source/x/xmlschema/xmlschema-$version.tar.gz)

build() {
  cd xmlschema-$version

  /usr/bin/python3 -m build --wheel --skip-dependency-check --no-isolation
  /usr/bin/python3 -m installer --compile-bytecode 2 --destdir=$PKG dist/*.whl
}
