From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 13DC51382C5 for ; Tue, 9 Feb 2021 14:46:22 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9A3CFE0995; Tue, 9 Feb 2021 14:46:18 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 77BD8E0995 for ; Tue, 9 Feb 2021 14:46:18 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E64FC340E27 for ; Tue, 9 Feb 2021 14:46:16 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 88C3C4CE for ; Tue, 9 Feb 2021 14:46:14 +0000 (UTC) From: "Andrew Ammerlaan" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andrew Ammerlaan" Message-ID: <1612752697.6e1300788ed113f1e222ae4e3e78163b78ef430d.andrewammerlaan@gentoo> Subject: [gentoo-commits] repo/proj/guru:master commit in: dev-python/pykeepass/files/, dev-python/pykeepass/ X-VCS-Repository: repo/proj/guru X-VCS-Files: dev-python/pykeepass/Manifest dev-python/pykeepass/files/0001-setup.py-exclude-tests-directory.patch dev-python/pykeepass/files/pykeepass-4.0.0-fix-tests-install.patch dev-python/pykeepass/pykeepass-4.0.0.ebuild X-VCS-Directories: dev-python/pykeepass/ dev-python/pykeepass/files/ X-VCS-Committer: andrewammerlaan X-VCS-Committer-Name: Andrew Ammerlaan X-VCS-Revision: 6e1300788ed113f1e222ae4e3e78163b78ef430d X-VCS-Branch: master Date: Tue, 9 Feb 2021 14:46:14 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 1fbbbbb2-9f51-4d19-9e11-d708910c09c0 X-Archives-Hash: 76212f4e1cf0d5681926baf355eafbf3 commit: 6e1300788ed113f1e222ae4e3e78163b78ef430d Author: Theo Anderson posteo de> AuthorDate: Mon Feb 8 02:51:37 2021 +0000 Commit: Andrew Ammerlaan riseup net> CommitDate: Mon Feb 8 02:51:37 2021 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=6e130078 dev-python/pykeepass: bump to 4.0.0; enable tests Package-Manager: Portage-3.0.14, Repoman-3.0.2 Signed-off-by: Theo Anderson posteo.de> dev-python/pykeepass/Manifest | 1 + ...tch => pykeepass-4.0.0-fix-tests-install.patch} | 2 +- dev-python/pykeepass/pykeepass-4.0.0.ebuild | 40 ++++++++++++++++++++++ 3 files changed, 42 insertions(+), 1 deletion(-) diff --git a/dev-python/pykeepass/Manifest b/dev-python/pykeepass/Manifest index 0a667172..b01fc900 100644 --- a/dev-python/pykeepass/Manifest +++ b/dev-python/pykeepass/Manifest @@ -1,2 +1,3 @@ DIST pykeepass-3.2.0.tar.gz 68381 BLAKE2B 05b0dbf86f5211596487a026ef0de438c540e302edf1a2b57403bbcd212d99a995fe91bf770d963f47a77a05adb66817b26d73154585254f1ed1b956e40bdaf6 SHA512 8ecdf667ef03f6189d75ce5d6fe0ec49fc683ebccc94a77fe31807b43abfc77417a26058281758aee5721558c267458106bc2626cddbf9ff29225297dc4896fb DIST pykeepass-3.2.1.tar.gz 46615 BLAKE2B fac973f9992b15d5f0bad94eb99201c6cf76e0fbf20fa2e04cc51bc6686a65c746608054afe4f0a0cfea1f534e55829d2e485def321ecf9b2dda0e729e6fc4ff SHA512 559287581741d5b3465fa722d0dc51dbbcb46776349c7a4ce2b688b8e692f188078718adcdf527723e35f30b3f68efa4625bba5db5109841b75d2590d0b67ff8 +DIST pykeepass-4.0.0.tar.gz 88720 BLAKE2B 7dcce1ded4527f32e0a602d9a7b742fabd32ee6c5e6836f0d4d217c3117177f258e974275670c9cea408e05335004996bea6a68ba12fe02ac30b0276ac7cfb54 SHA512 03483c9dc78774b2c5d4088f9995db9a9142bc69a8d4bc1824f4868175d3556434cb155c1f35a3fa0c04fca72f571af518166f59bcbe21431b7fe34a20b57cb2 diff --git a/dev-python/pykeepass/files/0001-setup.py-exclude-tests-directory.patch b/dev-python/pykeepass/files/pykeepass-4.0.0-fix-tests-install.patch similarity index 94% rename from dev-python/pykeepass/files/0001-setup.py-exclude-tests-directory.patch rename to dev-python/pykeepass/files/pykeepass-4.0.0-fix-tests-install.patch index 4f357a4d..2b257216 100644 --- a/dev-python/pykeepass/files/0001-setup.py-exclude-tests-directory.patch +++ b/dev-python/pykeepass/files/pykeepass-4.0.0-fix-tests-install.patch @@ -19,7 +19,7 @@ index 773acfc..2a8c17b 100644 @@ -11,7 +11,7 @@ setup( author="Philipp Schmitt", author_email="philipp@schmitt.co", - url="https://github.com/pschmitt/pykeepass", + url="https://github.com/libkeepass/pykeepass", - packages=find_packages(), + packages=find_packages(exclude=("tests")), install_requires=[ diff --git a/dev-python/pykeepass/pykeepass-4.0.0.ebuild b/dev-python/pykeepass/pykeepass-4.0.0.ebuild new file mode 100644 index 00000000..0770c7d7 --- /dev/null +++ b/dev-python/pykeepass/pykeepass-4.0.0.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{7..9} ) + +inherit distutils-r1 + +DESCRIPTION="Python library to interact with keepass databases (supports KDBX3 and KDBX4) " +HOMEPAGE="https://github.com/libkeepass/pykeepass" +SRC_URI="https://github.com/libkeepass/pykeepass/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + >=dev-python/argon2-cffi-19.2.0[${PYTHON_USEDEP}] + >=dev-python/construct-2.10.54[${PYTHON_USEDEP}] + >=dev-python/future-0.18.2[${PYTHON_USEDEP}] + >=dev-python/lxml-4.3.5[${PYTHON_USEDEP}] + >=dev-python/pycryptodome-3.8.2[${PYTHON_USEDEP}] + >=dev-python/python-dateutil-2.8.1[${PYTHON_USEDEP}] +" +DEPEND="${RDEPEND}" + +PATCHES=( "${FILESDIR}"/pykeepass-4.0.0-fix-tests-install.patch ) + +distutils_enable_tests pytest + +src_prepare() { + distutils-r1_src_prepare + # pycryptodomex to pycryptodome conversion + sed -i 's/Cryptodome/Crypto/g' pykeepass/kdbx_parsing/{common,twofish}.py || die +} + +python_test() { + "${EPYTHON}" tests/tests.py -v || die +}