1 |
commit: 3962702fbe3a5e129a80b3993939bb2dceb0a615 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Feb 26 07:40:10 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Feb 26 07:48:41 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3962702f |
7 |
|
8 |
dev-python/diskcache: Migrate to PEP517 build |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/diskcache/diskcache-5.4.0-r1.ebuild | 41 ++++++++++++++++++++++++++ |
13 |
1 file changed, 41 insertions(+) |
14 |
|
15 |
diff --git a/dev-python/diskcache/diskcache-5.4.0-r1.ebuild b/dev-python/diskcache/diskcache-5.4.0-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 000000000000..76a1c5fc6504 |
18 |
--- /dev/null |
19 |
+++ b/dev-python/diskcache/diskcache-5.4.0-r1.ebuild |
20 |
@@ -0,0 +1,41 @@ |
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} ) |
28 |
+PYTHON_REQ_USE="sqlite" |
29 |
+ |
30 |
+inherit distutils-r1 |
31 |
+ |
32 |
+HOMEPAGE=" |
33 |
+ https://www.grantjenks.com/docs/diskcache/ |
34 |
+ https://github.com/grantjenks/python-diskcache/ |
35 |
+" |
36 |
+DESCRIPTION="Disk and file backed cache" |
37 |
+SRC_URI=" |
38 |
+ https://github.com/grantjenks/python-diskcache/archive/v${PV}.tar.gz |
39 |
+ -> ${P}.gh.tar.gz |
40 |
+" |
41 |
+S=${WORKDIR}/python-diskcache-${PV} |
42 |
+ |
43 |
+LICENSE="Apache-2.0" |
44 |
+SLOT="0" |
45 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux" |
46 |
+ |
47 |
+BDEPEND=" |
48 |
+ test? ( |
49 |
+ >=dev-python/django-3.2[${PYTHON_USEDEP}] |
50 |
+ ) |
51 |
+" |
52 |
+ |
53 |
+distutils_enable_sphinx docs |
54 |
+distutils_enable_tests pytest |
55 |
+ |
56 |
+src_prepare() { |
57 |
+ # remove dep on pytest-xdist and pytest-cov |
58 |
+ sed -i -e '/-n auto/d' -e '/--cov/d' tox.ini || die |
59 |
+ |
60 |
+ distutils-r1_src_prepare |
61 |
+} |