summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c4e3adbd3ce64b84b74de4b8f72f1dd8e9bd54a0 (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
34
35
36
# Maintainer: Maximilian Stahlberg <maximilian.stahlberg tu-berlin de>

pkgname=python-concurrencytest
pkgver=0.1.2.4
_commit=c807f3e1428ff91ad93f270306966bc6597f3adf
pkgrel=1
pkgdesc='Python testtools extension for running unittest suites concurrently.'
arch=('any')
url='https://github.com/cgoldberg/concurrencytest'
license=('GPL3')
depends=('python-testtools' 'python-subunit')
makedepends=('python-build' 'python-installer' 'python-wheel')
source=("https://github.com/cgoldberg/concurrencytest/archive/${_commit}.zip"
        "fix_warnings.patch")
md5sums=('223e5dd7a97d95a464de3a06c4734aba'
         '26a55216936cd4c7970d0ced04bc9c47')

prepare() {
	cd "${srcdir}/concurrencytest-${_commit}"
	patch --forward --strip=1 --input="${srcdir}/fix_warnings.patch"
}

build() {
	cd "${srcdir}/concurrencytest-${_commit}"
	python -m build --wheel --no-isolation
}

check() {
	cd "${srcdir}/concurrencytest-${_commit}/build/lib"
	python -Bc "import concurrencytest"
}

package() {
	cd "${srcdir}/concurrencytest-${_commit}"
	python -m installer --destdir="${pkgdir}" dist/*.whl
}