python-pyslm
LOW
maintainer jskier
0 votes
scanned 2026-09-23 13:40:34.773403
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>
2
pkgname=python-pyslm
3
_name=pyslm
4
pkgver=0.6.1
5
pkgrel=1
6
pkgdesc="Python library for additive manufacturing and 3D printing development (slicing, hatching, support generation)"
7
arch=('any')
8
url="https://github.com/drlukeparry/pyslm"
9
license=('LGPL-2.1-only')
10
depends=('python' 'python-matplotlib' 'python-networkx' 'python-numpy' 'python-pyclipr'
11
'python-rtree' 'python-scikit-image' 'python-scipy' 'python-shapely'
12
'python-trimesh')
13
makedepends=('python-build' 'python-installer' 'python-hatchling' 'python-requests')
14
checkdepends=('python-pytest')
15
optdepends=('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')
20
source=("$_name-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
21
sha256sums=('98a4582924d4a8dab5b9281a58421d9a6a649d6a81faab67ca294f34200fab5a')
22
23
prepare() {
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
30
build() {
31
cd "$_name-$pkgver"
32
python -m build --wheel --no-isolation
33
}
34
35
check() {
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
44
package() {
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) | Severity | Rules |
|---|---|---|
| 2026-09-23 13:40:34 | Low | 1 |