blob: dc9fc6922bf092c9264e55e944c39c9815606a94 (
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
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# Maintainer: Michał Wojdyła < micwoj9292 at gmail dot com >
# Contributor: Luis Martinez <luis dot martinez at disroot dot org>
# Contributor: pfm <vorticity at mail dot ru>
pkgname=python-eliot
pkgver=1.16.0
pkgrel=1
pkgdesc='Logging that tells you why it happened'
arch=('any')
url='https://github.com/itamarst/eliot'
license=('Apache-2.0')
depends=('python' 'python-zope-interface' 'python-pyrsistent' 'python-boltons')
makedepends=(
'python-setuptools'
'python-build'
'python-installer'
'python-wheel'
'python-sphinx')
checkdepends=('python-pytest' 'python-hypothesis' 'python-testtools')
#source=("$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/e/eliot/eliot-$pkgver.tar.gz")
# 1.15.0 has no sdist on pypi
source=("$pkgname-$pkgver.tar.gz::https://github.com/itamarst/eliot/archive/refs/tags/$pkgver.tar.gz")
sha256sums=('b9a66d7e9531b0ee76008a7fe2138b64ba212fcb4d4fa7d95fbd192ff62550ab')
prepare() {
cd "eliot-$pkgver"
## remove tests from final package
sed -i "/packages=/c\packages=['eliot']," setup.py
}
build() {
cd "eliot-$pkgver"
python -m build --wheel --no-isolation
( cd docs; make man )
}
check() {
cd "eliot-$pkgver"
## test_prettyprint requires python-eliot installed at runtime; exclude it
## test_action fails, to investigate later
pytest -x --ignore eliot/tests/test_prettyprint.py --ignore eliot/tests/test_action.py --disable-warnings
}
package(){
export PYTHONHASHSEED=0
cd "eliot-$pkgver"
python -m installer --destdir="$pkgdir/" dist/*.whl
install -Dm644 docs/build/man/eliot.1 -t "$pkgdir/usr/share/man/man1/"
}
|