aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-faker/APKBUILD
blob: d60a6ea822daac56a6594d3d56887f563b9f26bb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=py3-faker
_pyname=Faker
pkgver=5.0.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="8d9f3aad79cd847114cd9fcf675d66551a4dffa2f38f9c7b1254537187ef9ad2c5bee8b545c402f3db51036b34ea9b521b3e0cc075d9c09c24fa1c5129a69628  Faker-5.0.1.tar.gz"