[arch-commits] Commit in python-faker/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Sat Oct 26 04:17:07 UTC 2019
Date: Saturday, October 26, 2019 @ 04:17:07
Author: felixonmars
Revision: 519964
archrelease: copy trunk to community-staging-any
Added:
python-faker/repos/community-staging-any/
python-faker/repos/community-staging-any/PKGBUILD
(from rev 519962, python-faker/trunk/PKGBUILD)
----------+
PKGBUILD | 39 +++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
Copied: python-faker/repos/community-staging-any/PKGBUILD (from rev 519962, python-faker/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2019-10-26 04:17:07 UTC (rev 519964)
@@ -0,0 +1,39 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Jeremy "Ichimonji10" Audet <ichimonji10 at gmail dot com>
+# Contributor: dnuux <dnuuxx at gmail.com>
+
+pkgname=python-faker
+pkgver=1.0.7
+pkgrel=2
+pkgdesc='Faker generates fake data for you.'
+arch=('any')
+url='https://faker.readthedocs.io/en/master/'
+license=('MIT')
+depends=('python-setuptools' 'python-dateutil' 'python-text-unidecode')
+provides=("python-fake-factory=$pkgver")
+conflicts=('python-fake-factory')
+replaces=('python-fake-factory')
+checkdepends=('python-ukpostcodeparser' 'python-mock' 'python-email-validator' 'python-pytest'
+ 'python-freezegun' 'python-random2')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/joke2k/faker/archive/v$pkgver.tar.gz")
+sha512sums=('e49d3298424e7ab552cdd3fe106d8ce63fc7d38b707a6093d2aee932507c13f75fe9794125e3ee99fcfe284cc61bf377899a7d3ebc55808df37007f7d01f3c51')
+
+prepare() {
+ sed -i -e 's/<3.9/<6/' -e 's/==/>=/' faker-$pkgver/setup.py
+}
+
+build() {
+ cd faker-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd faker-$pkgver
+ python setup.py pytest
+}
+
+package() {
+ cd faker-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+ install -Dm 644 LICENSE.txt "$pkgdir"/usr/share/licenses/${pkgname}/LICENSE.txt
+}
More information about the arch-commits
mailing list