public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/nh3/
Date: Sun,  7 Jul 2024 17:23:10 +0000 (UTC)	[thread overview]
Message-ID: <1720372982.8ab9d8db7785e9ffdde4fa9768a800761ce0893b.mgorny@gentoo> (raw)

commit:     8ab9d8db7785e9ffdde4fa9768a800761ce0893b
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Jul  7 17:10:22 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Jul  7 17:23:02 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8ab9d8db

dev-python/nh3: Enable py3.13

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/nh3/nh3-0.2.17-r1.ebuild | 112 ++++++++++++++++++++++++++++++++++++
 1 file changed, 112 insertions(+)

diff --git a/dev-python/nh3/nh3-0.2.17-r1.ebuild b/dev-python/nh3/nh3-0.2.17-r1.ebuild
new file mode 100644
index 000000000000..cdbc88d1df8a
--- /dev/null
+++ b/dev-python/nh3/nh3-0.2.17-r1.ebuild
@@ -0,0 +1,112 @@
+# Copyright 2023-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+CRATES="
+	ammonia@4.0.0
+	autocfg@1.2.0
+	bitflags@1.3.2
+	cfg-if@1.0.0
+	form_urlencoded@1.2.1
+	futf@0.1.5
+	getrandom@0.2.12
+	heck@0.4.1
+	html5ever@0.27.0
+	idna@0.5.0
+	indoc@2.0.5
+	libc@0.2.153
+	lock_api@0.4.11
+	log@0.4.21
+	mac@0.1.1
+	maplit@1.0.2
+	markup5ever@0.12.0
+	memoffset@0.9.0
+	new_debug_unreachable@1.0.6
+	once_cell@1.19.0
+	parking_lot@0.12.1
+	parking_lot_core@0.9.9
+	percent-encoding@2.3.1
+	phf@0.11.2
+	phf_codegen@0.11.2
+	phf_generator@0.10.0
+	phf_generator@0.11.2
+	phf_shared@0.10.0
+	phf_shared@0.11.2
+	portable-atomic@1.6.0
+	ppv-lite86@0.2.17
+	precomputed-hash@0.1.1
+	proc-macro2@1.0.79
+	pyo3-build-config@0.21.0
+	pyo3-ffi@0.21.0
+	pyo3-macros-backend@0.21.0
+	pyo3-macros@0.21.0
+	pyo3@0.21.0
+	quote@1.0.35
+	rand@0.8.5
+	rand_chacha@0.3.1
+	rand_core@0.6.4
+	redox_syscall@0.4.1
+	scopeguard@1.2.0
+	serde@1.0.197
+	serde_derive@1.0.197
+	siphasher@0.3.11
+	smallvec@1.13.2
+	string_cache@0.8.7
+	string_cache_codegen@0.5.2
+	syn@2.0.55
+	target-lexicon@0.12.14
+	tendril@0.4.3
+	tinyvec@1.6.0
+	tinyvec_macros@0.1.1
+	unicode-bidi@0.3.15
+	unicode-ident@1.0.12
+	unicode-normalization@0.1.23
+	unindent@0.2.3
+	url@2.5.0
+	utf-8@0.7.6
+	wasi@0.11.0+wasi-snapshot-preview1
+	windows-targets@0.48.5
+	windows_aarch64_gnullvm@0.48.5
+	windows_aarch64_msvc@0.48.5
+	windows_i686_gnu@0.48.5
+	windows_i686_msvc@0.48.5
+	windows_x86_64_gnu@0.48.5
+	windows_x86_64_gnullvm@0.48.5
+	windows_x86_64_msvc@0.48.5
+"
+
+DISTUTILS_EXT=1
+DISTUTILS_USE_PEP517=maturin
+PYTHON_COMPAT=( pypy3 python3_{10..13} )
+
+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 Unicode-DFS-2016"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
+
+distutils_enable_tests pytest
+
+# Rust
+QA_FLAGS_IGNORED="usr/lib.*/py.*/site-packages/nh3/nh3.*.so"
+
+src_prepare() {
+	distutils-r1_src_prepare
+
+	# force unstable ABI to workaround stable ABI crash in py3.13
+	# https://github.com/PyO3/pyo3/issues/4311
+	sed -i -e 's:"abi3-py37",::' Cargo.toml || die
+	export UNSAFE_PYO3_SKIP_VERSION_CHECK=1
+}


             reply	other threads:[~2024-07-07 17:23 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-07 17:23 Michał Górny [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-07-27 10:06 [gentoo-commits] repo/gentoo:master commit in: dev-python/nh3/ Michał Górny
2024-07-27  9:34 Arthur Zamarin
2024-07-27  9:08 Arthur Zamarin
2024-07-27  8:40 Arthur Zamarin
2024-07-27  8:03 Arthur Zamarin
2024-07-27  7:41 Arthur Zamarin
2024-07-27  7:35 Arthur Zamarin
2024-07-27  7:07 Arthur Zamarin
2024-07-07 18:59 Arthur Zamarin
2024-06-17  5:44 Petr Vaněk
2024-04-12  3:03 Michał Górny
2024-04-11 21:34 Sam James
2024-04-11 19:39 Sam James
2024-04-11 17:50 Arthur Zamarin
2024-04-11 17:43 Arthur Zamarin
2024-04-11 17:00 Arthur Zamarin
2024-04-11 16:53 Arthur Zamarin
2024-04-11 16:35 Arthur Zamarin
2024-03-26 16:58 Michał Górny
2023-12-24 17:24 Michał Górny
2023-12-24 17:21 Arthur Zamarin
2023-12-24 16:13 Sam James
2023-12-08 19:44 Arthur Zamarin
2023-12-08  5:41 Michał Górny
2023-10-22  0:22 Yixun Lan
2023-10-20 20:21 Arthur Zamarin
2023-10-20 20:18 Arthur Zamarin
2023-10-18 15:42 Arthur Zamarin
2023-10-18  9:44 Sam James
2023-10-18  9:44 Sam James
2023-10-03  5:12 Sam James
2023-09-25 19:12 Arthur Zamarin
2023-09-25 17:33 Arthur Zamarin
2023-09-25 17:08 Arthur Zamarin
2023-09-25 16:54 Arthur Zamarin
2023-09-12 10:19 WANG Xuerui
2023-09-11 11:41 Arthur Zamarin
2023-09-10 14:27 Sam James
2023-09-10 14:27 Sam James
2023-09-10  3:13 Michał Górny

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1720372982.8ab9d8db7785e9ffdde4fa9768a800761ce0893b.mgorny@gentoo \
    --to=mgorny@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox