blob: 4654ce9df341925ff1fb75e885f7af09b557acae (
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: Stefan Gehr <stefan@gehr.xyz>
pkgname=python-flifile
_name=flifile
pkgver=1.4.2
pkgrel=1
pkgdesc="Python code for opening a lambert instruments .fli file"
arch=('any')
url="https://github.com/rharkes/flifile"
license=('GPL-3.0-only')
depends=('python-numpy')
optdepends=(
'python-black'
'python-pytest'
'mypy'
'twine'
)
makedepends=(
'python-build'
'python-installer'
'python-wheel'
'python-setuptools'
'python-pytest'
)
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz")
b2sums=('b07f0ae7a8e758a14ab519e34894f3f199c2e48af0a3e9e161c7841150716489d34be96ff16bb50a88b56f9a7c69e3ab3a385073dee438b1133174e9fe4ae340')
build() {
cd "${_name}-${pkgver}"
python -m build --wheel --no-isolation
}
check() {
cd "${_name}-${pkgver}"
python -m pytest flifile tests
}
package() {
cd "${_name}-${pkgver}"
python -m installer --destdir="$pkgdir" dist/*.whl
}
# vim:set ts=2 sw=2 et:
|