1 |
commit: f56740823a78cc239c75843bd5547d15f6f16d2d |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed May 11 13:54:49 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed May 11 13:54:49 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f5674082 |
7 |
|
8 |
dev-python/python-dateutil: Use PEP517 build |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
.../python-dateutil-2.8.2-r1.ebuild | 47 ++++++++++++++++++++++ |
13 |
1 file changed, 47 insertions(+) |
14 |
|
15 |
diff --git a/dev-python/python-dateutil/python-dateutil-2.8.2-r1.ebuild b/dev-python/python-dateutil/python-dateutil-2.8.2-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 000000000000..63391c2a9f7d |
18 |
--- /dev/null |
19 |
+++ b/dev-python/python-dateutil/python-dateutil-2.8.2-r1.ebuild |
20 |
@@ -0,0 +1,47 @@ |
21 |
+# Copyright 1999-2022 Gentoo Authors |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+EAPI=8 |
25 |
+ |
26 |
+DISTUTILS_USE_PEP517=setuptools |
27 |
+PYTHON_COMPAT=( python3_{8..10} pypy3 ) |
28 |
+ |
29 |
+inherit distutils-r1 |
30 |
+ |
31 |
+DESCRIPTION="Extensions to the standard Python datetime module" |
32 |
+HOMEPAGE=" |
33 |
+ https://dateutil.readthedocs.io/ |
34 |
+ https://pypi.org/project/python-dateutil/ |
35 |
+ https://github.com/dateutil/dateutil/ |
36 |
+" |
37 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
38 |
+ |
39 |
+LICENSE="BSD" |
40 |
+SLOT="0" |
41 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos" |
42 |
+ |
43 |
+RDEPEND=" |
44 |
+ >=dev-python/six-1.5[${PYTHON_USEDEP}] |
45 |
+ sys-libs/timezone-data |
46 |
+" |
47 |
+BDEPEND=" |
48 |
+ dev-python/setuptools_scm[${PYTHON_USEDEP}] |
49 |
+ test? ( |
50 |
+ dev-python/freezegun[${PYTHON_USEDEP}] |
51 |
+ dev-python/hypothesis[${PYTHON_USEDEP}] |
52 |
+ ) |
53 |
+" |
54 |
+ |
55 |
+PATCHES=( |
56 |
+ "${FILESDIR}/python-dateutil-2.8.2-system-tzdata.patch" |
57 |
+ "${FILESDIR}/python-dateutil-2.8.1-no-pytest-cov.patch" |
58 |
+) |
59 |
+ |
60 |
+distutils_enable_tests pytest |
61 |
+ |
62 |
+python_prepare_all() { |
63 |
+ # don't install zoneinfo tarball |
64 |
+ sed -i '/package_data=/d' setup.py || die |
65 |
+ |
66 |
+ distutils-r1_python_prepare_all |
67 |
+} |