# Maintainer: Drew DeVault pkgname=py3-faker _pyname=Faker pkgver=4.17.1 pkgrel=0 pkgdesc="Python package that generates fake data for you" url="https://faker.readthedocs.io/en/master" arch="noarch" license="MIT" depends="py3-dateutil py3-setuptools py3-six py3-text-unidecode" checkdepends="py3-email-validator py3-ipaddress py3-mock py3-freezegun py3-more-itertools py3-pytest py3-ukpostcodeparser py3-validators py3-pytest-runner py3-random2" _pypiprefix="${_pyname%${_pyname#?}}" source="https://files.pythonhosted.org/packages/source/$_pypiprefix/$_pyname/$_pyname-$pkgver.tar.gz" builddir=$srcdir/$_pyname-$pkgver replaces="py-faker" # Backwards compatibility provides="py-faker=$pkgver-r$pkgrel" # Backwards compatibility prepare() { default_prepare # tests erroneously require a specific version of pytest sed -i setup.py -e 's/ *"pytest>=.*//g' } build() { python3 setup.py build } check() { python3 setup.py test } package() { python3 setup.py install --prefix=/usr --root="$pkgdir" } sha512sums="a50b2390bb19e7f0ffdfbf10d682b9c73003ac07ceba703b4ec3166a0f60351da26f79a7341fa34e8a521585d09e895bb28e763d7e57b455c77fbf040903ffd9 Faker-4.17.1.tar.gz"