upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / python-faker / trunk / PKGBUILD
blob3bd7989b826b30e50560d6569772eb6036036aff
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Contributor: Jeremy "Ichimonji10" Audet <ichimonji10 at gmail dot com>
3 # Contributor: dnuux <dnuuxx@gmail.com>
5 pkgname=python-faker
6 pkgver=18.3.0
7 _commit=2c39895b8602ed179c975dba6f0a23936e8969e4
8 pkgrel=1
9 pkgdesc='Faker generates fake data for you.'
10 arch=('any')
11 url='https://faker.readthedocs.io/en/master/'
12 license=('MIT')
13 depends=('python-dateutil')
14 makedepends=('git' 'python-setuptools' 'python-pytest')
15 checkdepends=('python-validators' 'python-ukpostcodeparser' 'python-freezegun' 'python-pillow')
16 source=("git+https://github.com/joke2k/faker.git#commit=$_commit")
17 sha512sums=('SKIP')
19 prepare() {
20   sed -i -e 's/==/>=/' faker/setup.py
23 build() {
24   cd faker
25   python setup.py build
28 check() {
29   cd faker
30   python setup.py egg_info
31   python -m pytest
34 package() {
35   cd faker
36   python setup.py install --root="$pkgdir" --optimize=1
37   install -Dm644 LICENSE.txt -t "$pkgdir"/usr/share/licenses/$pkgname/