upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / python-rstr / trunk / PKGBUILD
blobcb65c6954d7b5d679598820a2887ee34df6b6bbc
1 # Maintainer: Jelle van der Waa <jelle@archlinux.org>
2 # Contributor: Kewl <xrjy@nygb.rh.bet(rot13)>
3 # Contributor: Andy Weidenbaum <archbaum@gmail.com>
5 pkgname=python-rstr
6 _pkgname=rstr
7 pkgver=3.2.1
8 pkgrel=1
9 pkgdesc="Generate random strings in Python"
10 arch=('any')
11 url="https://github.com/leapfrogonline/rstr"
12 license=('BSD')
13 depends=('python')
14 makedepends=(python-setuptools python-setuptools-scm python-build python-installer python-wheel)
15 source=("https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
16 sha256sums=('c51924c626540eb626ed3eb8e5e6c1d2f2c73959d039c8ff61ee562baeb4e0ff')
18 prepare() {
19   cd $_pkgname-$pkgver
22 build() {
23   cd $_pkgname-$pkgver
24   python -m build --wheel --no-isolation
27 check() {
28   cd $_pkgname-$pkgver
29   python3 -m unittest discover
32 package() {
33   cd $_pkgname-$pkgver
34   python -m installer --destdir="$pkgdir" dist/*.whl
35   install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt