# Copyright 2023-2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 DISTUTILS_EXT=1 DISTUTILS_USE_PEP517=maturin PYTHON_COMPAT=( python3_{12..15} ) RUST_MIN_VER="1.88.0" CRATES=" aliasable@0.1.3 ammonia@4.1.4 bitflags@2.13.1 cfg-if@1.0.4 cssparser@0.37.0 displaydoc@0.2.7 dtoa-short@0.3.5 dtoa@1.0.11 fastrand@2.5.0 form_urlencoded@1.2.2 heck@0.4.1 heck@0.5.0 html5ever@0.39.0 icu_collections@2.3.0 icu_locale_core@2.3.0 icu_normalizer@2.3.0 icu_normalizer_data@2.3.0 icu_properties@2.3.0 icu_properties_data@2.3.0 icu_provider@2.3.1 idna@1.1.0 idna_adapter@1.2.2 itoa@1.0.18 libc@0.2.189 litemap@0.8.3 lock_api@0.4.14 log@0.4.34 maplit@1.0.2 markup5ever@0.39.0 new_debug_unreachable@1.0.6 once_cell@1.21.4 ouroboros@0.18.5 ouroboros_macro@0.18.5 parking_lot@0.12.5 parking_lot_core@0.9.12 percent-encoding@2.3.2 phf@0.13.1 phf_codegen@0.13.1 phf_generator@0.13.1 phf_shared@0.13.1 portable-atomic@1.15.0 potential_utf@0.1.6 precomputed-hash@0.1.1 proc-macro2-diagnostics@0.10.1 proc-macro2@1.0.107 pyo3-build-config@0.29.2 pyo3-ffi@0.29.2 pyo3-macros-backend@0.29.2 pyo3-macros@0.29.2 pyo3@0.29.2 quote@1.0.47 redox_syscall@0.5.18 scopeguard@1.2.0 serde@1.0.229 serde_core@1.0.229 serde_derive@1.0.229 siphasher@1.0.3 smallvec@1.15.2 stable_deref_trait@1.2.1 static_assertions@1.1.0 string_cache@0.9.0 string_cache_codegen@0.6.1 syn@2.0.119 syn@3.0.3 synstructure@0.13.2 target-lexicon@0.13.5 tendril@0.5.1 tinystr@0.8.4 unicode-ident@1.0.24 url@2.5.8 utf8_iter@1.0.4 version_check@0.9.5 web_atoms@0.2.6 windows-link@0.2.1 writeable@0.6.4 yansi@1.0.1 yoke-derive@0.8.2 yoke@0.8.3 zerofrom-derive@0.1.7 zerofrom@0.1.8 zerotrie@0.2.5 zerovec-derive@0.11.6 zerovec@0.11.8 " inherit cargo distutils-r1 pypi DESCRIPTION="Ammonia HTML sanitizer Python binding" HOMEPAGE=" https://github.com/messense/nh3/ https://pypi.org/project/nh3/ " SRC_URI+=" ${CARGO_CRATE_URIS} " LICENSE="MIT" # Dependent crate licenses LICENSE+=" Apache-2.0-with-LLVM-exceptions MIT MPL-2.0 Unicode-3.0" SLOT="0" KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" EPYTEST_PLUGINS=() distutils_enable_tests pytest # Rust QA_FLAGS_IGNORED="usr/lib.*/py.*/site-packages/nh3/nh3.*.so"