python-pyslm

LOW
maintainer jskier 0 votes scanned 2026-09-23 13:40:34.773403
View on AUR
Why flagged

Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.

Triggered rules

Low Few votes, recently uploaded zero_votes_recent

Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.

PKGBUILD

1# Maintainer: Jeremy MountainJohnson <jay@jskier.com>
2pkgname=python-pyslm
3_name=pyslm
4pkgver=0.6.1
5pkgrel=1
6pkgdesc="Python library for additive manufacturing and 3D printing development (slicing, hatching, support generation)"
7arch=('any')
8url="https://github.com/drlukeparry/pyslm"
9license=('LGPL-2.1-only')
10depends=('python' 'python-matplotlib' 'python-networkx' 'python-numpy' 'python-pyclipr'
11 'python-rtree' 'python-scikit-image' 'python-scipy' 'python-shapely'
12 'python-trimesh')
13makedepends=('python-build' 'python-installer' 'python-hatchling' 'python-requests')
14checkdepends=('python-pytest')
15optdepends=('python-manifold3d: support structure generation (mesh boolean operations)'
16 'python-mapbox-earcut: support structure generation (polygon triangulation)'
17 'python-triangle: support structure generation (constrained triangulation)'
18 'python-vispy: support structure generation (OpenGL depth rendering)'
19 'python-pyqt5: vispy rendering backend')
20source=("$_name-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
21sha256sums=('98a4582924d4a8dab5b9281a58421d9a6a649d6a81faab67ca294f34200fab5a')
22
23prepare() {
24 cd "$_name-$pkgver"
25 # Upstream's wheel include list drops examples/, models/ and docs/ into the top level
26 # of site-packages; ship only the pyslm package (examples go to /usr/share/doc)
27 sed -i '/^\[tool.hatch.build.targets.wheel\]/,/^\]/c\[tool.hatch.build.targets.wheel]\npackages = ["pyslm"]' pyproject.toml
28}
29
30build() {
31 cd "$_name-$pkgver"
32 python -m build --wheel --no-isolation
33}
34
35check() {
36 cd "$_name-$pkgver"
37 local _site="$PWD/test-site"
38 rm -rf "$_site"
39 python -m installer --destdir="$_site" dist/*.whl
40 local _pydir=$(python -c 'import site; print(site.getsitepackages()[0])')
41 PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 PYTHONPATH="$_site$_pydir" python -m pytest -p no:cacheprovider tests
42}
43
44package() {
45 cd "$_name-$pkgver"
46 python -m installer --destdir="$pkgdir" dist/*.whl
47 install -d "$pkgdir/usr/share/doc/$pkgname"
48 cp -r --no-preserve=ownership examples models README.rst CHANGELOG.md "$pkgdir/usr/share/doc/$pkgname/"
49 install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
50}
51

Scan history

Scanned at (UTC)SeverityRules
2026-09-23 13:40:34 Low 1

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion