17 lines
496 B
Plaintext
17 lines
496 B
Plaintext
# Description: Python bindings to the ammonia HTML sanitization library
|
|
# URL: https://github.com/messense/nh3
|
|
# Maintainer: CRUX System Team, core-ports at crux dot nu
|
|
# Depends on: python3-maturin
|
|
|
|
name=python3-nh3
|
|
version=0.2.18
|
|
release=1
|
|
source=(https://pypi.org/packages/source/n/nh3/nh3-$version.tar.gz)
|
|
|
|
build() {
|
|
cd nh3-$version
|
|
|
|
/usr/bin/python3 -m build --wheel --skip-dependency-check --no-isolation
|
|
/usr/bin/python3 -m installer --compile-bytecode 2 --destdir=$PKG dist/*.whl
|
|
}
|