mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-24 11:45:18 +03:00
48 lines
1.3 KiB
Text
48 lines
1.3 KiB
Text
# Contributor: Drew DeVault <sir@cmpwn.com>
|
|
# Maintainer: Michał Polański <michal@polanski.me>
|
|
pkgname=py3-faker
|
|
_pyname=Faker
|
|
pkgver=17.6.0
|
|
pkgrel=0
|
|
pkgdesc="Python package that generates fake data for you"
|
|
url="https://faker.readthedocs.io/en/master"
|
|
license="MIT"
|
|
arch="noarch"
|
|
depends="py3-dateutil"
|
|
makedepends="py3-setuptools"
|
|
checkdepends="py3-email-validator py3-ipaddress py3-mock py3-freezegun
|
|
py3-more-itertools py3-pytest py3-ukpostcodeparser py3-validators
|
|
py3-pytest-runner py3-random2 py3-pillow"
|
|
_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
|
|
|
|
case "$CARCH" in
|
|
# blocked by py3-pillow
|
|
s390x|riscv64) options="!check" ;;
|
|
esac
|
|
|
|
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() {
|
|
PYTHONPATH="$PWD" pytest
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --skip-build --root="$pkgdir"
|
|
}
|
|
|
|
sha512sums="
|
|
a879fb7e0c82693d4d3062b32382eb6d1f3c556c7d2e4c28168cba43c560bf17ebb84b94692ba7db738871251990feca8ccbf271c6e08c61847b76b84deb9680 Faker-17.6.0.tar.gz
|
|
"
|