blob: b6312a29d2bf1d6c039667b944802479f906405b (
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
54
55
56
57
58
|
# This is an example PKGBUILD file. Use this as a start to creating your own,
# and remove these comments. For more information, see 'man PKGBUILD'.
# NOTE: Please fill out the license field for your package! If it is unknown,
# then please put 'unknown'.
# Maintainer: Your Name <youremail@domain.com>
_name=cf-xarray
pkgname=python-${_name}
pkgver=0.9.4
pkgrel=1
epoch=
pkgdesc="A lightweight convenience wrapper for using CF attributes on xarray objects."
arch=('any')
url="https://github.com/xarray-contrib/cf-xarray"
license=('Apache-2.0')
groups=()
depends=("python" "python-xarray")
makedepends=("python-build" "python-installer" "python-setuptools")
checkdepends=("python-pytest")
optdepends=(
"python-matplotlib: to enable pint's built-in matplotlib support"
"python-pint: to provide unit support via approximating UDUNITS/CF"
"python-pooch: to install cf standard name table from raw.githubusercontent.com"
"python-shapely: for conversion between shapely geometry objects and CF-compliant dataset"
"python-regex: to instead of python official re module"
"python-rich: for better console output"
)
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz")
noextract=()
sha256sums=('f2e80edfb83435f00e909ffe8212ccea9331bf7670a92ee44d1346b56d99e48c')
validpgpkeys=()
prepare() {
cd "${srcdir}/${_name}-${pkgver}"
}
build() {
cd "${srcdir}/${_name}-${pkgver}"
python -m build --wheel --no-isolation
}
check() {
cd "${srcdir}/${_name}-${pkgver}"
pytest # can not test due to network requirement
}
package() {
cd "${srcdir}/${_name}-${pkgver}"
python -m installer --destdir="$pkgdir" dist/*.whl
}
|