summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 04c3bb41f4f4df5970a126cc810b28f669c0a80e (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
pkgname=python-ocp-tessellate
_name=ocp_tessellate
pkgdesc="Tessellate OCP objectsto use with threejs"
pkgver=3.0.11
pkgrel=1
arch=('any')
url="https://github.com/bernhard-42/ocp-tessellate"
license=('Apache-2.0')
depends=('python-webcolors' 'python-numpy' 'python-cachetools' 'python-imagesize')
makedepends=('python-build' 'python-installer' 'python-wheel')
#checkdepends=('python-pytest')
source=("https://files.pythonhosted.org/packages/source/o/$_name/$_name-$pkgver.tar.gz")
sha256sums=('eefbefa7e768befd510146eac5ea92fa30738ad59187fc44c97a14d2a2da880e')

build() {
    cd $_name-$pkgver
    python -m build --wheel --no-isolation
}

package() {
    cd $_name-$pkgver
    python -m installer --destdir="$pkgdir" dist/*.whl
}

# some tests depend on ocp_vscode, which would create a cyclic dependency...
#check() {
#    cd $_name-$pkgver
#    pytest
#}