1 |
commit: 887e402b4a696a52861b406cf3cf02d6cd2677c9 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jan 31 18:13:55 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jan 31 18:31:48 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=887e402b |
7 |
|
8 |
dev-python/async-lru: New dep of dev-python/denonavr |
9 |
|
10 |
This package provides functools.lru_cache port for async functions. |
11 |
|
12 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
13 |
|
14 |
dev-python/async-lru/Manifest | 1 + |
15 |
.../async-lru/async-lru-1.0.2_p20201029.ebuild | 36 ++++++++++++++++++++++ |
16 |
dev-python/async-lru/metadata.xml | 12 ++++++++ |
17 |
3 files changed, 49 insertions(+) |
18 |
|
19 |
diff --git a/dev-python/async-lru/Manifest b/dev-python/async-lru/Manifest |
20 |
new file mode 100644 |
21 |
index 00000000000..f97e0cc563e |
22 |
--- /dev/null |
23 |
+++ b/dev-python/async-lru/Manifest |
24 |
@@ -0,0 +1 @@ |
25 |
+DIST async-lru-17a5d207f603c0c142f01a69fbf6f487b3fef5c4.tar.gz 10486 BLAKE2B 88831686b79ed742d28a202b1b303333c52b604f6e786cd0bccc4141a81d002a2b2daf3a264bf83d40e5218a3aa3209579d99b9e1b358da708ffada50bea2d3e SHA512 3c92b5c2fe149e53889f9c4adba9b88a03815d563b56d45363310c2527d4ebb800147fc8e38847f4b473d424692bfae55f96e482979009fb1a977850fb08b2f1 |
26 |
|
27 |
diff --git a/dev-python/async-lru/async-lru-1.0.2_p20201029.ebuild b/dev-python/async-lru/async-lru-1.0.2_p20201029.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..a8a2f32ddf3 |
30 |
--- /dev/null |
31 |
+++ b/dev-python/async-lru/async-lru-1.0.2_p20201029.ebuild |
32 |
@@ -0,0 +1,36 @@ |
33 |
+# Copyright 2021 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=7 |
37 |
+ |
38 |
+PYTHON_COMPAT=( python3_{7..9} ) |
39 |
+inherit distutils-r1 |
40 |
+ |
41 |
+EGIT_COMMIT=17a5d207f603c0c142f01a69fbf6f487b3fef5c4 |
42 |
+DESCRIPTION="Simple lru_cache for asyncio" |
43 |
+HOMEPAGE=" |
44 |
+ https://github.com/aio-libs/async-lru/ |
45 |
+ https://pypi.org/project/async_lru/" |
46 |
+SRC_URI=" |
47 |
+ https://github.com/aio-libs/async-lru/archive/${EGIT_COMMIT}.tar.gz |
48 |
+ -> ${PN}-${EGIT_COMMIT}.tar.gz" |
49 |
+S=${WORKDIR}/${PN}-${EGIT_COMMIT} |
50 |
+ |
51 |
+LICENSE="MIT" |
52 |
+SLOT="0" |
53 |
+KEYWORDS="~amd64 ~x86" |
54 |
+ |
55 |
+BDEPEND=" |
56 |
+ test? ( |
57 |
+ dev-python/pytest-asyncio[${PYTHON_USEDEP}] |
58 |
+ )" |
59 |
+ |
60 |
+distutils_enable_tests pytest |
61 |
+ |
62 |
+src_prepare() { |
63 |
+ sed -e 's:--cache-clear::' \ |
64 |
+ -e 's:--no-cov-on-fail --cov=async_lru --cov-report=term --cov-report=html::' \ |
65 |
+ -i setup.cfg || die |
66 |
+ |
67 |
+ distutils-r1_src_prepare |
68 |
+} |
69 |
|
70 |
diff --git a/dev-python/async-lru/metadata.xml b/dev-python/async-lru/metadata.xml |
71 |
new file mode 100644 |
72 |
index 00000000000..79feba24df1 |
73 |
--- /dev/null |
74 |
+++ b/dev-python/async-lru/metadata.xml |
75 |
@@ -0,0 +1,12 @@ |
76 |
+<?xml version="1.0" encoding="UTF-8"?> |
77 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
78 |
+<pkgmetadata> |
79 |
+ <maintainer type="project"> |
80 |
+ <email>python@g.o</email> |
81 |
+ </maintainer> |
82 |
+ <stabilize-allarches/> |
83 |
+ <upstream> |
84 |
+ <remote-id type="github">aio-libs/async-lru</remote-id> |
85 |
+ <remote-id type="pypi">async_lru</remote-id> |
86 |
+ </upstream> |
87 |
+</pkgmetadata> |