# Maintainer: Drew DeVault pkgname=py3-faker _pyname=Faker pkgver=1.0.7 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-more-itertools py3-pytest py3-ukpostcodeparser" _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="fd835336626d23b2144c3b827a318d54f3e4cc4b652ecba54e68bef3b1580db2ee620e2573e4c40cbe2da6143c2d50c19c30b48237b9d147ca2c731680b2c5d0 Faker-1.0.7.tar.gz"