blob: 8d25b6a193ca339e582c4729a8964ce6e364a5b4 (
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
50
51
52
53
|
# Maintainer: Rafael Dominiquini <rafaeldominiquini at gmail dot com>
# Contributor: morguldir <morguldir@protonmail.com>
# Contributor: is1 <is1@sdf.org>
pkgname=python-yappi
pkgver=1.7.7
pkgrel=1
pkgdesc='A tracing profiler that is multithreading, asyncio and gevent aware.'
url='https://github.com/sumerc/yappi'
license=(MIT)
arch=('x86_64')
depends=(python)
optdepends=(python-greenlet)
makedepends=(python-build python-installer python-wheel python-setuptools)
checkdepends=(python-installer python-pytest python-gevent)
source=("$pkgname-$pkgver.tar.gz"::"https://github.com/sumerc/yappi/archive/refs/tags/v$pkgver.tar.gz"
"pyproject.toml.add-console-script.patch")
sha256sums=('84df70c7de26861ed624e7d321ec2d5ac26dae04d4f75ecc3e76b5c85248336e'
'afd256f3d0bf9651739e26fb5003572beea9b0029cd4d1cadf5cd0523440ae46')
prepare() {
cd yappi-"$pkgver"
patch -p1 -i ../pyproject.toml.add-console-script.patch pyproject.toml
}
build() {
cd yappi-"$pkgver"
python -m build --wheel --no-isolation
}
# check() {
# cd yappi-"$pkgver"
#
# # This is done to generate the yappi console script in check/usr/bin
# python -m installer --destdir check dist/*.whl
# local libdir="$(find "$PWD"/check -name yappi.py -exec dirname '{}' ';')"
# local bindir="$PWD/check/usr/bin"
# export PYTHONPATH="$libdir:$PWD/tests"
# export PATH="$bindir:$PATH"
# pytest
# }
package() {
cd yappi-"$pkgver"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|