blob: 840e9f590a7586483b46ae40366f07c290132dea (
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=12
pkgdesc="Allows you to run a test with multiple data sets"
arch=('any')
license=('Apache')
url="https://github.com/box/genty"
depends=('python-six')
makedepends=('python-setuptools' '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 setup.py build
}
check() {
cd "$srcdir/genty"
python -m unittest -v
}
package() {
cd genty
python setup.py install --root="${pkgdir}" --optimize=1
}
|