# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). # See COPYING for license details. pkgname=python-fake-useragent _pkgname=fake_useragent pkgver=2.2.0 pkgrel=1 pkgdesc='Up to date simple useragent faker with real world database.' arch=('any') url='https://pypi.org/project/fake-useragent/#files' license=('Apache-2.0') depends=('python') 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=('3ff26c9467fc1e242f9aad7a225a2b463d57a454d919170c9f0b26b857d1d983803d43109ec939560493bf01d5cc7d825f3cc5b9d2b9c5b951166b9e612e3ad9') build() { cd "$_pkgname-$pkgver" python -m build --wheel --no-isolation } package() { cd "$_pkgname-$pkgver" python -m installer --destdir="$pkgdir" dist/*.whl }