blob: 10c808052edd072f42a31e39d01e44aee4f7cdb6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# Maintainer: Matthew Sexton <matthew@asylumtech.com>
# Contributor: jmcb <joelsgp@protonmail.com>
pkgname=python-passwdgen
_name=passwdgen
pkgver=0.4.0
pkgrel=3
pkgdesc=" A simple password generation utility"
arch=('any')
url="https://github.com/thanethomson/passwdgen"
license=('MIT')
depends=('python' 'python-pyperclip')
makedepends=('python-build' 'python-installer' 'python-wheel' 'python-flit-core')
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
sha256sums=('081437e2f2958a0df934ec6de37c383f0c465675709f4e650f46c89c08484c94')
build() {
cd "$_name-$pkgver"
python -m build --wheel --no-isolation
}
check() {
cd "$_name-$pkgver"
python -m unittest
}
package() {
cd "$_name-$pkgver"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
|