summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4a04d86f079eb81f032c833511cb2c250a5da3c1 (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
pkgname='python-allpairspy'
_module='allpairspy'
pkgver='2.5.0'
pkgrel=1
pkgdesc='A python library for test combinations generator'
url='https://github.com/thombashi/allpairspy'
depends=('python')
makedepends=('python-setuptools' 'python-six')
checkdepends=('python-pytest')
license=('MIT')
arch=('any')
source=("https://github.com/thombashi/allpairspy/archive/v${pkgver}.tar.gz")
sha256sums=('4af06f6af70d53f126daf04fda82ae1dbb8517b0bdad0f55aaa5e04f3d9daa6a')

BUILDENV+=('!check')

check() {
    cd "${srcdir}/${_module}-${pkgver}"
    pytest
}

build() {
    cd "${srcdir}/${_module}-${pkgver}"
    python setup.py build
}

package() {
    cd "${srcdir}/${_module}-${pkgver}"
    python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
}