blob: 125e15d34c875d0b802f57f0a0915513d6426d76 (
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
|
# Maintainer: Guillaume Horel <guillaume.horel@gmail.com>
pkgname=python-calamine
pkgver=0.2.3
pkgrel=1
pkgdesc="Python binding for a library for reading excel and odf file: calamine"
arch=(x86_64)
url="https://github.com/dimastbk/python-calamine"
license=(MIT)
depends=(
python
)
makedepends=(
python-build
python-installer
python-maturin
python-wheel
)
checkdepends=(
)
options=(!lto)
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
sha256sums=('a91dd9a4e19a60916653ee52c579819df646fdd5ec87a6a0ced6355c33b87724')
build() {
cd "$pkgname-$pkgver"
export RUSTUP_TOOLCHAIN=stable
python -m build --wheel --no-isolation
}
check() {
cd "$pkgname-$pkgver"
local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
python -m installer --destdir=tmp_install dist/*.whl
PYTHONPATH="$PWD/tmp_install/$site_packages" pytest tests -k 'not test_xlsb_pyxlsb_pandas'
}
package() {
cd "$pkgname-$pkgver"
python -m installer --destdir="$pkgdir" dist/*.whl
install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
}
|