blob: 00b96dfc42537a01a000af2a009315123eb3c380 (
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
|
pkgname=python-ocp-vscode
_name=ocp_vscode
pkgdesc="OCP CAD Viewer for VSCode (also for Jupyter and standalone)"
pkgver=2.6.1
pkgrel=1
arch=('any')
url="https://github.com/bernhard-42/vscode-ocp-cad-viewer"
license=('Apache-2.0')
depends=('python-ocp-tessellate' 'python-requests' 'python-ipykernel' 'python-orjson'
'python-websockets' 'python-pyaml' 'python-flask' 'python-flask-sock' 'python-click')
makedepends=('python-build' 'python-installer' 'python-wheel')
#checkdepends=('python-pytest')
source=("https://files.pythonhosted.org/packages/source/o/$_name/$_name-$pkgver.tar.gz"
"ocp-vscode")
sha256sums=('9e11aa89f6e60733846e553df4e347c19b82c8ca84912c43ce844af426daae7e'
'4fd564ab59d38072be61cfa5159a297e7222879265ffea94684296bfe550aa26')
build() {
cd $_name-$pkgver
python -m build --wheel --no-isolation
}
package() {
cd $_name-$pkgver
python -m installer --destdir="$pkgdir" dist/*.whl
# install python executable to simplify running as standalone
install -Dm755 -t "$pkgdir/usr/bin" "../ocp-vscode"
}
# The test files aren't actually using pytest, and fail to load
#check() {
# cd $_name-$pkgver
# pytest
#}
|