1 |
commit: 1392f594fc02ce19511238af9a1d8a052f4fd548 |
2 |
Author: James Le Cuirot <chewi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Sep 12 21:35:28 2021 +0000 |
4 |
Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Sep 12 21:35:28 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1392f594 |
7 |
|
8 |
dev-python/sqlitedict: New package |
9 |
|
10 |
Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org> |
11 |
|
12 |
dev-python/sqlitedict/Manifest | 1 + |
13 |
dev-python/sqlitedict/metadata.xml | 12 +++++++++++ |
14 |
dev-python/sqlitedict/sqlitedict-1.7.0.ebuild | 31 +++++++++++++++++++++++++++ |
15 |
3 files changed, 44 insertions(+) |
16 |
|
17 |
diff --git a/dev-python/sqlitedict/Manifest b/dev-python/sqlitedict/Manifest |
18 |
new file mode 100644 |
19 |
index 00000000000..2185fa213e4 |
20 |
--- /dev/null |
21 |
+++ b/dev-python/sqlitedict/Manifest |
22 |
@@ -0,0 +1 @@ |
23 |
+DIST sqlitedict-1.7.0.tar.gz 28234 BLAKE2B f67187ee27acbe5525b5f0efb8fd85b68e820439e273af8f9ac4e2f223a2c267f252cb0d60366bd51ba9b55cf36d892e02bdfe727a366bfd266005d98d477c9f SHA512 1ef5e0caf81f7ac17eac0d8573c3404ea043c0c5700fe6b4b9f28ac86ad8d97416bad561318898967cf1af0d7e616684ee3044018e24dab3686d43554c74fef1 |
24 |
|
25 |
diff --git a/dev-python/sqlitedict/metadata.xml b/dev-python/sqlitedict/metadata.xml |
26 |
new file mode 100644 |
27 |
index 00000000000..e0f2a7f3644 |
28 |
--- /dev/null |
29 |
+++ b/dev-python/sqlitedict/metadata.xml |
30 |
@@ -0,0 +1,12 @@ |
31 |
+<?xml version="1.0" encoding="UTF-8"?> |
32 |
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> |
33 |
+<pkgmetadata> |
34 |
+ <maintainer type="person"> |
35 |
+ <email>chewi@g.o</email> |
36 |
+ <name>James Le Cuirot</name> |
37 |
+ </maintainer> |
38 |
+ <upstream> |
39 |
+ <remote-id type="github">piskvorky/sqlitedict</remote-id> |
40 |
+ <remote-id type="pypi">sqlitedict</remote-id> |
41 |
+ </upstream> |
42 |
+</pkgmetadata> |
43 |
|
44 |
diff --git a/dev-python/sqlitedict/sqlitedict-1.7.0.ebuild b/dev-python/sqlitedict/sqlitedict-1.7.0.ebuild |
45 |
new file mode 100644 |
46 |
index 00000000000..b664c9623ef |
47 |
--- /dev/null |
48 |
+++ b/dev-python/sqlitedict/sqlitedict-1.7.0.ebuild |
49 |
@@ -0,0 +1,31 @@ |
50 |
+# Copyright 1999-2021 Gentoo Authors |
51 |
+# Distributed under the terms of the GNU General Public License v2 |
52 |
+ |
53 |
+EAPI=8 |
54 |
+ |
55 |
+PYTHON_COMPAT=( python3_{8..10} ) |
56 |
+ |
57 |
+inherit distutils-r1 |
58 |
+ |
59 |
+DESCRIPTION="Persistent dict in Python, backed by SQLite and pickle" |
60 |
+HOMEPAGE="https://github.com/piskvorky/sqlitedict" |
61 |
+SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" |
62 |
+ |
63 |
+LICENSE="Apache-2.0" |
64 |
+SLOT="0" |
65 |
+KEYWORDS="~amd64" |
66 |
+IUSE="test" |
67 |
+RESTRICT="!test? ( test )" |
68 |
+ |
69 |
+BDEPEND=" |
70 |
+ test? ( dev-python/pytest[${PYTHON_USEDEP}] ) |
71 |
+" |
72 |
+ |
73 |
+DOCS=( |
74 |
+ README.rst |
75 |
+) |
76 |
+ |
77 |
+python_test() { |
78 |
+ rm -f tests/db/* || die |
79 |
+ py.test -v || die |
80 |
+} |