1 |
commit: b2ada37a38522716e53f812c5864ab52d097f5b7 |
2 |
Author: James Beddek <telans <AT> posteo <DOT> de> |
3 |
AuthorDate: Mon Oct 4 07:28:43 2021 +0000 |
4 |
Commit: Theo Anderson <telans <AT> posteo <DOT> de> |
5 |
CommitDate: Mon Oct 4 07:28:43 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=b2ada37a |
7 |
|
8 |
dev-python/pykeepass: add 4.0.1 |
9 |
|
10 |
Signed-off-by: James Beddek <telans <AT> posteo.de> |
11 |
|
12 |
dev-python/pykeepass/Manifest | 1 + |
13 |
dev-python/pykeepass/pykeepass-4.0.1.ebuild | 40 +++++++++++++++++++++++++++++ |
14 |
2 files changed, 41 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/pykeepass/Manifest b/dev-python/pykeepass/Manifest |
17 |
index cdbff95aa..0192005ee 100644 |
18 |
--- a/dev-python/pykeepass/Manifest |
19 |
+++ b/dev-python/pykeepass/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST pykeepass-4.0.0.tar.gz 88720 BLAKE2B 7dcce1ded4527f32e0a602d9a7b742fabd32ee6c5e6836f0d4d217c3117177f258e974275670c9cea408e05335004996bea6a68ba12fe02ac30b0276ac7cfb54 SHA512 03483c9dc78774b2c5d4088f9995db9a9142bc69a8d4bc1824f4868175d3556434cb155c1f35a3fa0c04fca72f571af518166f59bcbe21431b7fe34a20b57cb2 |
22 |
+DIST pykeepass-4.0.1.tar.gz 99343 BLAKE2B ed3ea6575041ef73adc769365078818af9080851bba8b31ee24ef283480633305147307c4ea7217fba96ca18cd90bcf33b0d66b0a9148121165f67937d8677b0 SHA512 512f25029fcaa7a84459767cd9101d113623722c2aaf466fd3e77cf0043c37d344ccd2c0226fcbc3b3c22e39f8060c172ab1e1c72993c469a4499b21c47f6134 |
23 |
|
24 |
diff --git a/dev-python/pykeepass/pykeepass-4.0.1.ebuild b/dev-python/pykeepass/pykeepass-4.0.1.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000..e7963b9c1 |
27 |
--- /dev/null |
28 |
+++ b/dev-python/pykeepass/pykeepass-4.0.1.ebuild |
29 |
@@ -0,0 +1,40 @@ |
30 |
+# Copyright 1999-2021 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=8 |
34 |
+ |
35 |
+PYTHON_COMPAT=( python3_{7..9} ) |
36 |
+ |
37 |
+inherit distutils-r1 |
38 |
+ |
39 |
+DESCRIPTION="Python library to interact with keepass databases (supports KDBX3 and KDBX4) " |
40 |
+HOMEPAGE="https://github.com/libkeepass/pykeepass" |
41 |
+SRC_URI="https://github.com/libkeepass/pykeepass/archive/${PV}.tar.gz -> ${P}.tar.gz" |
42 |
+ |
43 |
+LICENSE="GPL-3" |
44 |
+SLOT="0" |
45 |
+KEYWORDS="~amd64 ~x86" |
46 |
+ |
47 |
+RDEPEND=" |
48 |
+ >=dev-python/argon2-cffi-19.2.0[${PYTHON_USEDEP}] |
49 |
+ >=dev-python/construct-2.10.54[${PYTHON_USEDEP}] |
50 |
+ >=dev-python/future-0.18.2[${PYTHON_USEDEP}] |
51 |
+ >=dev-python/lxml-4.3.5[${PYTHON_USEDEP}] |
52 |
+ >=dev-python/pycryptodome-3.8.2[${PYTHON_USEDEP}] |
53 |
+ >=dev-python/python-dateutil-2.8.1[${PYTHON_USEDEP}] |
54 |
+" |
55 |
+DEPEND="${RDEPEND}" |
56 |
+ |
57 |
+PATCHES=( "${FILESDIR}"/pykeepass-4.0.0-fix-tests-install.patch ) |
58 |
+ |
59 |
+distutils_enable_tests pytest |
60 |
+ |
61 |
+src_prepare() { |
62 |
+ distutils-r1_src_prepare |
63 |
+ # pycryptodomex to pycryptodome conversion |
64 |
+ sed -i 's/Cryptodome/Crypto/g' pykeepass/kdbx_parsing/{common,twofish}.py || die |
65 |
+} |
66 |
+ |
67 |
+python_test() { |
68 |
+ "${EPYTHON}" tests/tests.py -v || die |
69 |
+} |