pkgname=python-markupsafe _name=${pkgname#python-} pkgver=3.0.2 pkgdesc="Implements a XML/HTML/XHTML Markup safe string for Python" arch=('x86_64') homepage="https://pypi.python.org/pypi/MarkupSafe" license=('BSD-3-Clause') sources=("${_name}-${pkgver}.tar.gz") urls=("https://pypi.org/packages/source/M/MarkupSafe/${sources[0]}") md5sums=("cb0071711b573b155cc8f86e1de72167") src_prepare() { tar -xf ${distdir}/${sources[0]} --strip-components=1 } src_build() { PYTHONDONTWRITEBYTECODE=1 pip3 wheel -w dist --no-cache-dir --no-build-isolation --no-deps $PWD } src_check() { : } src_install() { pip3 install --no-deps --no-warn-script-location --no-index --no-cache-dir --no-user --force-reinstall --root ${pkgdir} --find-links dist ${_name} install -Dm644 LICENSE.txt -t "$pkgdir"/usr/share/licenses/$pkgname/ }