blob: 5b92ed0a53487c181e758e89aed1e1dc74dc2884 (
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: Felix Yan <felixonmars@archlinux.org>
pkgname=python-iocapture
pkgver=0.1.2
pkgrel=12
pkgdesc="Capture stdout, stderr easily"
arch=('any')
license=('MIT')
url="https://github.com/oinume/iocapture"
depends=('python')
makedepends=('python-setuptools' 'python-build' 'python-installer' 'python-wheel')
checkdepends=('python-pytest' 'python-flexmock' 'python-pytest-cov' 'python-six')
source=("https://github.com/oinume/iocapture/archive/$pkgver/$pkgname-$pkgver.tar.gz")
sha512sums=('1205d13b107d83dcb45d5546038d8b0b5417a20a51149c405123111488c351ff81a447f10653cd3dd9ecc236e01a0fcceb6647091e38ff2fa34c69e0baff1567')
build() {
cd iocapture-$pkgver
python -m build --wheel --no-isolation
}
check() {
cd iocapture-$pkgver
PYTHONPATH="$PWD" pytest
}
package() {
cd iocapture-$pkgver
python -m installer --destdir="$pkgdir" dist/*.whl
install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
|