# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). # See COPYING for license details. pkgname=python-python-docx _pkgname=python_docx pkgver=1.2.0 pkgrel=1 pkgdesc='Create and update Microsoft Word .docx files.' arch=('any') url='https://pypi.org/project/python-docx/#files' license=('MIT') depends=('python' 'python-lxml') makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel') options=(!emptydirs) source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz") sha512sums=('8b8f952af90caf0ecc52e5b5db9be511b51175f4c124aa53def759711d89aa093b1daa3aee01e2e0dc24b9ebc31b781f28039c8bcd6412a7f410bdd6e6838892') build() { cd "$_pkgname-$pkgver" python -m build --wheel --no-isolation } package() { cd "$_pkgname-$pkgver" python -m installer --destdir="$pkgdir" dist/*.whl }