Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/ujson/
Date: Thu, 19 May 2022 07:15:05
Message-Id: 1652944487.c55710b343c9ab579d924431aa55f9f40d77a072.mgorny@gentoo
1 commit: c55710b343c9ab579d924431aa55f9f40d77a072
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Thu May 19 05:32:11 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu May 19 07:14:47 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c55710b3
7
8 dev-python/ujson: Bump to 5.3.0
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/ujson/Manifest | 1 +
13 dev-python/ujson/ujson-5.3.0.ebuild | 41 +++++++++++++++++++++++++++++++++++++
14 2 files changed, 42 insertions(+)
15
16 diff --git a/dev-python/ujson/Manifest b/dev-python/ujson/Manifest
17 index 68b216b85995..fffaefb7df65 100644
18 --- a/dev-python/ujson/Manifest
19 +++ b/dev-python/ujson/Manifest
20 @@ -1 +1,2 @@
21 DIST ujson-5.2.0.tar.gz 7135591 BLAKE2B 1207e1eae65f859018bbb7a868c2b2010c0e4b41214ea63c1aef00a41600f69e941a1a02d22f1702f3974a3f12e90a731717681e6e9a9e782fc49716b4b13cef SHA512 c0ef90bdaa2d5e02109ea3e01288ff9ab4e4bd865ea0a33d915de2878cb13a04f24fe278f86582e042b430e6b20077f2b337d6a4349777a803e9725666952fd6
22 +DIST ujson-5.3.0.tar.gz 7137499 BLAKE2B 5aa61c465156c02aab6095acbd9764fec9cfdc1c42312852e804573b0f0e677591812d31b362f671468caea8159d0c5719eefc49847b993cf571ab40416f8652 SHA512 7342ab3548980e14ff7a931b40aa9886703c167b3f079d01e1d07c9f6408b2994a84cf157ff8966400af057cdd8f332d6f47e2747b918efcd67129727434c501
23
24 diff --git a/dev-python/ujson/ujson-5.3.0.ebuild b/dev-python/ujson/ujson-5.3.0.ebuild
25 new file mode 100644
26 index 000000000000..1b35f0d4ffe6
27 --- /dev/null
28 +++ b/dev-python/ujson/ujson-5.3.0.ebuild
29 @@ -0,0 +1,41 @@
30 +# Copyright 1999-2022 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +
35 +DISTUTILS_USE_PEP517=setuptools
36 +PYTHON_COMPAT=( python3_{8..11} pypy3 )
37 +
38 +inherit distutils-r1
39 +
40 +DESCRIPTION="Ultra fast JSON encoder and decoder for Python"
41 +HOMEPAGE="
42 + https://github.com/ultrajson/ultrajson/
43 + https://pypi.org/project/ujson/
44 +"
45 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
46 +
47 +LICENSE="BSD"
48 +SLOT="0"
49 +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux"
50 +
51 +DEPEND="
52 + dev-libs/double-conversion:=
53 +"
54 +RDEPEND="
55 + ${DEPEND}
56 +"
57 +BDEPEND="
58 + dev-python/setuptools_scm[${PYTHON_USEDEP}]
59 + test? (
60 + dev-python/pytz[${PYTHON_USEDEP}]
61 + )
62 +"
63 +
64 +distutils_enable_tests pytest
65 +
66 +src_configure() {
67 + export UJSON_BUILD_DC_INCLUDES="/usr/include/double-conversion"
68 + export UJSON_BUILD_DC_LIBS="-ldouble-conversion"
69 + export UJSON_BUILD_NO_STRIP=1
70 +}