blob: 37db2a3373b178120a136412e026bb924c7f87ef (
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: Astro Benzene <universebenzene at sina dot com>
pkgbase=python-miniballcpp
#_pyname=miniball
_pyname=MiniballCpp
pkgname=('python-miniballcpp')
pkgver=0.2.3
pkgrel=1
pkgdesc="Smallest Enclosing Balls of Points"
arch=('i686' 'x86_64')
url="https://github.com/weddige/miniball"
license=('GPL3')
makedepends=('python-setuptools'
'python-wheel'
'python-build'
'python-installer')
checkdepends=('python-pytest')
#source=("https://github.com/weddige/miniball/archive/refs/tags/v${pkgver}.tar.gz")
source=("https://files.pythonhosted.org/packages/source/${_pyname::1}/${_pyname}/${_pyname}-${pkgver}.tar.gz")
md5sums=('fba99a497f17b7caf27d55036a524ada')
get_pyver() {
python -c "import sys; print('$1'.join(map(str, sys.version_info[:2])))"
}
build() {
cd ${srcdir}/${_pyname}-${pkgver}
python -m build --wheel --no-isolation
}
check() {
cd ${srcdir}/${_pyname}-${pkgver}
PYTHONPATH="build/lib.linux-${CARCH}-cpython-$(get_pyver)" pytest || warning "Tests failed" # -vv --color=yes
}
package_python-miniballcpp() {
cd ${srcdir}/${_pyname}-${pkgver}
depends=('python')
install -D -m644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
python -m installer --destdir="${pkgdir}" dist/*.whl
}
|