1 |
commit: a61c333cbe5a5305a167de1a5dc95a76d8f7a33e |
2 |
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
3 |
AuthorDate: Wed May 11 10:50:49 2022 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed May 11 11:29:17 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=a61c333c |
7 |
|
8 |
dev-python/orjson: build with pep517 |
9 |
|
10 |
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com> |
11 |
|
12 |
dev-python/orjson/orjson-3.6.8-r1.ebuild | 74 ++++++++++++++++++++++++++++++++ |
13 |
1 file changed, 74 insertions(+) |
14 |
|
15 |
diff --git a/dev-python/orjson/orjson-3.6.8-r1.ebuild b/dev-python/orjson/orjson-3.6.8-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 000000000..1bc00f5c2 |
18 |
--- /dev/null |
19 |
+++ b/dev-python/orjson/orjson-3.6.8-r1.ebuild |
20 |
@@ -0,0 +1,74 @@ |
21 |
+# Copyright 1999-2022 Gentoo Authors |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+EAPI=8 |
25 |
+ |
26 |
+CRATES=" |
27 |
+ ahash-0.7.6 |
28 |
+ arrayvec-0.7.2 |
29 |
+ associative-cache-1.0.1 |
30 |
+ autocfg-1.1.0 |
31 |
+ bytecount-0.6.2 |
32 |
+ cfg-if-1.0.0 |
33 |
+ chrono-0.4.19 |
34 |
+ encoding_rs-0.8.31 |
35 |
+ getrandom-0.2.6 |
36 |
+ inlinable_string-0.1.15 |
37 |
+ itoa-1.0.1 |
38 |
+ libc-0.2.123 |
39 |
+ libm-0.1.4 |
40 |
+ num-integer-0.1.44 |
41 |
+ num-traits-0.2.14 |
42 |
+ once_cell-1.10.0 |
43 |
+ packed_simd_2-0.3.7 |
44 |
+ pyo3-build-config-0.16.4 |
45 |
+ pyo3-ffi-0.16.4 |
46 |
+ ryu-1.0.9 |
47 |
+ serde-1.0.136 |
48 |
+ serde_json-1.0.79 |
49 |
+ simdutf8-0.1.4 |
50 |
+ smallvec-1.8.0 |
51 |
+ target-lexicon-0.12.3 |
52 |
+ version_check-0.9.4 |
53 |
+ wasi-0.10.2+wasi-snapshot-preview1 |
54 |
+" |
55 |
+DISTUTILS_USE_PEP517=maturin |
56 |
+PYTHON_COMPAT=( python3_{8..9} ) |
57 |
+QA_FLAGS_IGNORED="*" |
58 |
+ |
59 |
+inherit cargo distutils-r1 |
60 |
+ |
61 |
+DESCRIPTION="Fast, correct Python JSON library supporting dataclasses, datetimes, and numpy" |
62 |
+HOMEPAGE="https://github.com/ijl/orjson" |
63 |
+SRC_URI=" |
64 |
+ https://github.com/ijl/orjson/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz |
65 |
+ $(cargo_crate_uris ${CRATES}) |
66 |
+" |
67 |
+ |
68 |
+LICENSE=" |
69 |
+ Apache-2.0 MIT |
70 |
+ BSD |
71 |
+ || ( Apache-2.0 MIT ) |
72 |
+ || ( Apache-2.0 Apache-2.0-with-LLVM-exceptions MIT ) |
73 |
+ || ( Apache-2.0 Boost-1.0 ) |
74 |
+" |
75 |
+KEYWORDS="~amd64" |
76 |
+SLOT="0" |
77 |
+IUSE="debug" |
78 |
+ |
79 |
+BDEPEND=" |
80 |
+ test? ( |
81 |
+ dev-python/arrow[${PYTHON_USEDEP}] |
82 |
+ dev-python/orjson[${PYTHON_USEDEP}] |
83 |
+ dev-python/pendulum[${PYTHON_USEDEP}] |
84 |
+ dev-python/psutil[${PYTHON_USEDEP}] |
85 |
+ dev-python/pytz[${PYTHON_USEDEP}] |
86 |
+ |
87 |
+ $(python_gen_cond_dep 'dev-python/numpy[${PYTHON_USEDEP}]' python3_{8,9}) |
88 |
+ $(python_gen_cond_dep '>=dev-python/xxhash-1.4.3[${PYTHON_USEDEP}]' python3_8) |
89 |
+ ) |
90 |
+" |
91 |
+ |
92 |
+PATCHES=( "${FILESDIR}/${PN}-3.6.7-no-strip.patch" ) |
93 |
+ |
94 |
+distutils_enable_tests pytest |