blob: a1aa94a8e0dec7d243d64ff8b5f8cf0136efe09b (
plain)
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
|
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=py3-faker
_pyname=Faker
pkgver=1.0.4
pkgrel=1
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="6ab4814b0cde3b1146b0eb82c08b1eac6bf168fab261fd50c4ab399b51b84728b8ad6e64a372291fabc58c40621a19331d2511e123383bdf7d7612eb6fa2ad97 Faker-1.0.4.tar.gz"
|