blob: 5ba78e03f52cb3659f03e411c014a5834cc23af9 (
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
|
# Maintainer: Iyán Méndez Veiga <me (at) iyanmv (dot) com>
_name=eccodes
pkgname=python-${_name}
pkgver=2.47.0
pkgrel=1
pkgdesc="Python interface to the ecCodes GRIB/BUFR decoder/encoder"
arch=(any)
url=https://github.com/ecmwf/eccodes-python
license=(Apache-2.0)
depends=(
eccodes
python-attrs
python-cffi
python-findlibs
python-numpy
)
makedepends=(
git
python-build
python-installer
python-setuptools
)
checkdepends=(python-pytest)
source=($_name::git+https://github.com/ecmwf/$_name-python.git#tag=$pkgver)
b2sums=('f73a4e74f8756a16763322e27773a29449e7e5722e5c57029300a947ebcad93464dc77e5087bbf6837f5871631d5df37aab26f3c25882bd1e11863ccb34d4b74')
build() {
cd $_name
python -m build --wheel --no-isolation
}
check() {
cd $_name
python -m venv --system-site-packages test-env
test-env/bin/python -m installer dist/*.whl
rm -rf $_name
test-env/bin/python -P -m pytest -o addopts=""
}
package() {
cd $_name
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
|