Skip to content

Commit 1dc3d0b

Browse files
committedOct 11, 2024
py3-nh3: new package html sanitizer
The bleach module is deprecated and many projects are moving to nh3 See: mozilla/bleach#698 Signed-off-by: Pris Nasrat <pris.nasrat@chainguard.dev>
1 parent bb4a136 commit 1dc3d0b

File tree

1 file changed

+77
-0
lines changed

1 file changed

+77
-0
lines changed
 

‎py3-nh3.yaml

+77
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
package:
2+
name: py3-nh3
3+
version: 0.2.18
4+
epoch: 0
5+
description: Python binding to Ammonia HTML sanitizer Rust crate
6+
copyright:
7+
- license: Apache-2.0
8+
dependencies:
9+
provider-priority: 0
10+
11+
vars:
12+
pypi-package: nh3
13+
14+
data:
15+
- name: py-versions
16+
items:
17+
3.10: '310'
18+
3.11: '311'
19+
3.12: '312'
20+
3.13: '300'
21+
22+
environment:
23+
contents:
24+
packages:
25+
- build-base
26+
- busybox
27+
- ca-certificates-bundle
28+
- maturin
29+
- py3-supported-maturin
30+
- py3-supported-pip
31+
- py3-supported-python
32+
- py3-supported-setuptools
33+
- rust
34+
- wolfi-base
35+
36+
pipeline:
37+
- uses: git-checkout
38+
with:
39+
expected-commit: ba2b2748e472c18f5595200438be55ed1f943f45
40+
repository: https://github.com/messense/nh3
41+
tag: v${{package.version}}
42+
43+
subpackages:
44+
- range: py-versions
45+
name: py${{range.key}}-${{vars.pypi-package}}
46+
description: ${{vars.pypi-package}} installed for python${{range.key}}
47+
dependencies:
48+
provides:
49+
- py3-${{vars.pypi-package}}
50+
provider-priority: ${{range.value}}
51+
pipeline:
52+
- uses: py/pip-build-install
53+
with:
54+
python: python${{range.key}}
55+
- uses: strip
56+
test:
57+
pipeline:
58+
- uses: python/import
59+
with:
60+
python: python${{range.key}}
61+
import: ${{vars.pypi-package}}
62+
63+
- name: py3-supported-${{vars.pypi-package}}
64+
description: meta package providing ${{vars.pypi-package}} for supported python versions.
65+
dependencies:
66+
runtime:
67+
- py3.10-${{vars.pypi-package}}
68+
- py3.11-${{vars.pypi-package}}
69+
- py3.12-${{vars.pypi-package}}
70+
- py3.13-${{vars.pypi-package}}
71+
72+
update:
73+
enabled: true
74+
manual: false
75+
github:
76+
identifier: messense/nh3
77+
strip-prefix: v

0 commit comments

Comments
 (0)
Please sign in to comment.