commit: 1777fa22a7ead8495e429f394046b61f944d67d9
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Feb 15 06:52:00 2025 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Feb 15 07:01:04 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1777fa22
dev-python/simplejson: Bump to 3.20.1
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/simplejson/Manifest | 1 +
dev-python/simplejson/simplejson-3.20.1.ebuild | 37 ++++++++++++++++++++++++++
2 files changed, 38 insertions(+)
diff --git a/dev-python/simplejson/Manifest b/dev-python/simplejson/Manifest
index c6b6a4a19ce1..6b6193523cfd 100644
--- a/dev-python/simplejson/Manifest
+++ b/dev-python/simplejson/Manifest
@@ -1 +1,2 @@
DIST simplejson-3.19.3.tar.gz 85237 BLAKE2B
e3c233201c390a1c864670d9a7a81a6aef5334632afbbc303b31dab06709d8a383451e3c7500be3166282b322b93f4fedc2633a1519cb2e2eaef7c4472e903a6
SHA512
257c10c4c84201f1d9c4d77e823c4ef393bf7214c8947e4c95bcfe7c09140ff1b974cc5b00a6e659961263380673d3c4b67a1b37f878888ed049f1db0b663c92
+DIST simplejson-3.20.1.tar.gz 85591 BLAKE2B
dc79cc7ad25c8119abe240d2b5ce4ed72c56b7b371e20084a208a3a1556f8f8171adf440d09b20a4eaf9ef77b5c7782785912fe265f8f8bb66b73b95b5e7aeaa
SHA512
4f565530b6695bc7a1dded86a7694498f862fd21b614e097fc00deb7b5a9ced76a6669f22b862692e202cc19676bd94ca6588fb3a7df4af8c073d3344c7bbd3b
diff --git a/dev-python/simplejson/simplejson-3.20.1.ebuild
b/dev-python/simplejson/simplejson-3.20.1.ebuild
new file mode 100644
index 000000000000..e34972e4917d
--- /dev/null
+++ b/dev-python/simplejson/simplejson-3.20.1.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_EXT=1
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{10..13} pypy3 )
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="Simple, fast, extensible JSON encoder/decoder for Python"
+HOMEPAGE="
+ https://github.com/simplejson/simplejson/
+ https://pypi.org/project/simplejson/
+"
+
+LICENSE="|| ( MIT AFL-2.1 )"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64
~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos"
+IUSE="+native-extensions"
+
+DOCS=( README.rst CHANGES.txt )
+
+distutils_enable_tests unittest
+
+src_configure() {
+ # native-extensions are always disabled on PyPy
+ # https://github.com/simplejson/simplejson/blob/master/setup.py#L121
+ export DISABLE_SPEEDUPS=$(usex native-extensions 0 1)
+ use native-extensions && export REQUIRE_SPEEDUPS=1
+}
+
+python_test() {
+ cd "${BUILD_DIR}/install$(python_get_sitedir)" || die
+ eunittest
+}