blob: 2d2e18dfd54b0d0815e373560f973c606daa3fd4 (
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
31
32
33
|
# Maintainer: Felix Yan <felixonmars@archlinux.org>
pkgname=python-genty
pkgver=1.3.2
pkgrel=14
pkgdesc="Allows you to run a test with multiple data sets"
arch=('any')
license=('Apache-2.0')
url="https://github.com/box/genty"
depends=('python-six')
makedepends=('python-setuptools' 'python-build' 'python-installer' 'python-wheel' 'git')
source=("git+https://github.com/box/genty.git#tag=v$pkgver")
sha512sums=('SKIP')
prepare() {
cd "$srcdir/genty"
sed -i 's/from mock/from unittest.mock/' test/test_genty.py
}
build() {
cd "$srcdir/genty"
python -m build --wheel --no-isolation
}
check() {
cd "$srcdir/genty"
python -m unittest -v
}
package() {
cd genty
python -m installer --destdir="$pkgdir" dist/*.whl
}
|