blob: 0e2aad7b755edb15c6b127ad153b25a0623d4f8d (
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
|
# Maintainer: Guillaume Horel <guillaume.horel@gmail.com>
# Contributor: Morgan LEFIEUX <comete_AT_archlinuxfr.org>
# Contributor: Sergey Safonov <spoof-arch@spoofa.info>
pkgname=python-lzo
pkgver=1.16
pkgrel=1
pkgdesc="Python bindings for the LZO data compression library"
arch=('x86_64')
url="https://pypi.python.org/pypi/python-lzo"
license=('GPL2')
depends=(python)
makedepends=(lzo python-{build,installer,wheel,setuptools})
checkdepends=(python-pytest)
source=("$pkgname-$pkgver.tar.gz::https://github.com/jd-boyd/python-lzo/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('81542d191c6a3f81bd8f04e75a12107ef8197c35e5b7b54c11773910fd56a065')
build() {
cd "$pkgname-$pkgver"
python -m build --wheel --no-isolation
}
package() {
cd "$pkgname-$pkgver"
python -m installer --destdir="$pkgdir" dist/*.whl
}
check() {
cd "$pkgname-$pkgver"
local python_version=$(python -c 'import sys; print("".join(map(str, sys.version_info[:2])))')
PYTHONPATH="$PWD:$PWD/build/lib.linux-$CARCH-cpython-${python_version}" pytest tests
}
|