aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-faker/APKBUILD
blob: c17c8b067350efa38ef04a4bd136d6f90018a00d (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.6.3
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="6e5d593a89df9b90acc139764f1a923c1db0531248ef4198bd4d50d11ff9c9f8fa7156025c0d8a5fea94b85fe98cd65ceeda21b29b5140128719eee4c1fab564  Faker-5.6.3.tar.gz"