APKBUILD 1.17 KB
Newer Older
Drew DeVault's avatar
Drew DeVault committed
1
2
# Contributor: Drew DeVault <sir@cmpwn.com>
# Maintainer:
prspkt's avatar
prspkt committed
3
pkgname=py3-faker
prspkt's avatar
prspkt committed
4
_pyname=Faker
5
pkgver=5.6.3
Drew DeVault's avatar
Drew DeVault committed
6
pkgrel=1
Drew DeVault's avatar
Drew DeVault committed
7
pkgdesc="Python package that generates fake data for you"
prspkt's avatar
prspkt committed
8
9
10
url="https://faker.readthedocs.io/en/master"
arch="noarch"
license="MIT"
prspkt's avatar
prspkt committed
11
depends="py3-dateutil py3-setuptools py3-six py3-text-unidecode"
Leo's avatar
Leo committed
12
13
checkdepends="py3-email-validator py3-ipaddress py3-mock py3-freezegun
	py3-more-itertools py3-pytest py3-ukpostcodeparser py3-validators
Leo's avatar
Leo committed
14
	py3-pytest-runner py3-random2"
prspkt's avatar
prspkt committed
15
16
17
_pypiprefix="${_pyname%${_pyname#?}}"
source="https://files.pythonhosted.org/packages/source/$_pypiprefix/$_pyname/$_pyname-$pkgver.tar.gz"
builddir=$srcdir/$_pyname-$pkgver
Drew DeVault's avatar
Drew DeVault committed
18

prspkt's avatar
prspkt committed
19
20
21
replaces="py-faker" # Backwards compatibility
provides="py-faker=$pkgver-r$pkgrel" # Backwards compatibility

Drew DeVault's avatar
Drew DeVault committed
22
prepare() {
prspkt's avatar
prspkt committed
23
24
	default_prepare
	# tests erroneously require a specific version of pytest
Drew DeVault's avatar
Drew DeVault committed
25
26
27
28
29
30
31
32
33
34
35
36
	sed -i setup.py -e 's/ *"pytest>=.*//g'
}

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
prspkt's avatar
prspkt committed
37
	python3 setup.py install --prefix=/usr --root="$pkgdir"
Drew DeVault's avatar
Drew DeVault committed
38
39
}

40
sha512sums="6e5d593a89df9b90acc139764f1a923c1db0531248ef4198bd4d50d11ff9c9f8fa7156025c0d8a5fea94b85fe98cd65ceeda21b29b5140128719eee4c1fab564  Faker-5.6.3.tar.gz"