1 |
commit: d8d3e2910b8d3317fa491523eb7e39b8be4d5919 |
2 |
Author: Theo Anderson <telans <AT> posteo <DOT> de> |
3 |
AuthorDate: Fri Jan 8 10:33:47 2021 +0000 |
4 |
Commit: Theo Anderson <telans <AT> posteo <DOT> de> |
5 |
CommitDate: Fri Jan 8 10:33:47 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=d8d3e291 |
7 |
|
8 |
dev-python/pykeepass: fix pycryptodome imports |
9 |
|
10 |
Package-Manager: Portage-3.0.12, Repoman-3.0.2 |
11 |
Signed-off-by: Theo Anderson <telans <AT> posteo.de> |
12 |
|
13 |
dev-python/pykeepass/pykeepass-3.2.0-r1.ebuild | 39 ++++++++++++++++++++++++++ |
14 |
dev-python/pykeepass/pykeepass-3.2.1-r1.ebuild | 38 +++++++++++++++++++++++++ |
15 |
2 files changed, 77 insertions(+) |
16 |
|
17 |
diff --git a/dev-python/pykeepass/pykeepass-3.2.0-r1.ebuild b/dev-python/pykeepass/pykeepass-3.2.0-r1.ebuild |
18 |
new file mode 100644 |
19 |
index 00000000..c5a9d7a5 |
20 |
--- /dev/null |
21 |
+++ b/dev-python/pykeepass/pykeepass-3.2.0-r1.ebuild |
22 |
@@ -0,0 +1,39 @@ |
23 |
+# Copyright 1999-2021 Gentoo Authors |
24 |
+# Distributed under the terms of the GNU General Public License v2 |
25 |
+ |
26 |
+EAPI=7 |
27 |
+ |
28 |
+PYTHON_COMPAT=( python3_7 ) # not all dependency are 3.8 ready |
29 |
+ |
30 |
+inherit distutils-r1 eutils toolchain-funcs |
31 |
+ |
32 |
+DESCRIPTION="Python library to interact with keepass databases (supports KDBX3 and KDBX4) " |
33 |
+HOMEPAGE="https://github.com/libkeepass/pykeepass" |
34 |
+SRC_URI="https://github.com/libkeepass/pykeepass/archive/${PV}.tar.gz -> ${P}.tar.gz" |
35 |
+ |
36 |
+LICENSE="GPL-3" |
37 |
+SLOT="0" |
38 |
+KEYWORDS="~amd64 ~x86" |
39 |
+IUSE="" |
40 |
+ |
41 |
+RDEPEND=" |
42 |
+ >=dev-python/argon2-cffi-19.1.0[${PYTHON_USEDEP}] |
43 |
+ >=dev-python/construct-2.9.4[${PYTHON_USEDEP}] |
44 |
+ >=dev-python/future-0.17.0[${PYTHON_USEDEP}] |
45 |
+ >=dev-python/lxml-4.3.4[${PYTHON_USEDEP}] |
46 |
+ >=dev-python/pycryptodome-3.8.2[${PYTHON_USEDEP}] |
47 |
+ >=dev-python/python-dateutil-2.8.0[${PYTHON_USEDEP}] |
48 |
+" |
49 |
+DEPEND="${RDEPEND}" |
50 |
+ |
51 |
+PATCHES=( "${FILESDIR}/0001-setup.py-exclude-tests-directory.patch" ) |
52 |
+ |
53 |
+src_prepare() { |
54 |
+ distutils-r1_src_prepare |
55 |
+ # pycryptodomex to pycryptodome conversion |
56 |
+ sed -i 's/Cryptodome/Crypto/g' pykeepass/kdbx_parsing/{common,twofish}.py || die |
57 |
+} |
58 |
+ |
59 |
+python_test() { |
60 |
+ "${EPYTHON}" tests/tests.py -v || die |
61 |
+} |
62 |
|
63 |
diff --git a/dev-python/pykeepass/pykeepass-3.2.1-r1.ebuild b/dev-python/pykeepass/pykeepass-3.2.1-r1.ebuild |
64 |
new file mode 100644 |
65 |
index 00000000..549ffd7e |
66 |
--- /dev/null |
67 |
+++ b/dev-python/pykeepass/pykeepass-3.2.1-r1.ebuild |
68 |
@@ -0,0 +1,38 @@ |
69 |
+# Copyright 1999-2021 Gentoo Authors |
70 |
+# Distributed under the terms of the GNU General Public License v2 |
71 |
+ |
72 |
+EAPI=7 |
73 |
+ |
74 |
+PYTHON_COMPAT=( python3_{7..9} ) |
75 |
+ |
76 |
+inherit distutils-r1 |
77 |
+ |
78 |
+DESCRIPTION="Python library to interact with keepass databases (supports KDBX3 and KDBX4) " |
79 |
+HOMEPAGE="https://github.com/libkeepass/pykeepass" |
80 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
81 |
+ |
82 |
+LICENSE="GPL-3" |
83 |
+SLOT="0" |
84 |
+KEYWORDS="~amd64 ~x86" |
85 |
+ |
86 |
+RDEPEND=" |
87 |
+ >=dev-python/argon2-cffi-19.1.0[${PYTHON_USEDEP}] |
88 |
+ >=dev-python/construct-2.9.4[${PYTHON_USEDEP}] |
89 |
+ >=dev-python/future-0.17.0[${PYTHON_USEDEP}] |
90 |
+ >=dev-python/lxml-4.3.4[${PYTHON_USEDEP}] |
91 |
+ >=dev-python/pycryptodome-3.8.2[${PYTHON_USEDEP}] |
92 |
+ >=dev-python/python-dateutil-2.8.0[${PYTHON_USEDEP}] |
93 |
+" |
94 |
+DEPEND="${RDEPEND}" |
95 |
+ |
96 |
+PATCHES=( "${FILESDIR}/0001-setup.py-exclude-tests-directory.patch" ) |
97 |
+ |
98 |
+src_prepare() { |
99 |
+ distutils-r1_src_prepare |
100 |
+ # pycryptodomex to pycryptodome conversion |
101 |
+ sed -i 's/Cryptodome/Crypto/g' pykeepass/kdbx_parsing/{common,twofish}.py || die |
102 |
+} |
103 |
+ |
104 |
+python_test() { |
105 |
+ "${EPYTHON}" tests/tests.py -v || die |
106 |
+} |