mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-24 19:55:26 +03:00
44 lines
1.3 KiB
Text
44 lines
1.3 KiB
Text
# Contributor: Drew DeVault <sir@cmpwn.com>
|
|
# Maintainer: Michał Polański <michal@polanski.me>
|
|
pkgname=py3-faker
|
|
_pyname=Faker
|
|
pkgver=8.11.0
|
|
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-six py3-text-unidecode"
|
|
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-dateutil py3-text-unidecode
|
|
py3-freezegun py3-validators 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
|
|
|
|
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="
|
|
5a42ea5c843272f9f70edc88e405f0b309f6e6ae5c061d1f1ca7ed01f40688539371a1bce5084a0de3e424f3eb50443430ff1fafd1ef0a035d385d80b16cae2c Faker-8.11.0.tar.gz
|
|
"
|