app-admin/pwman3: add 0.13.1

Signed-off-by: Oz Tiram <oz.tiram@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/38152
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
This commit is contained in:
Oz Tiram
2024-08-27 22:08:41 +02:00
committed by Joonas Niilola
parent f4b9e7dab3
commit dfb38156bc
2 changed files with 47 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST pwman3-0.12.2.tar.gz 76744 BLAKE2B 5223169a267f0c35bcb26499138c9b768c6e29c4ce39d4fb89c56eb72d24a9729159bed93af24e12f1e0e6c1569586772eb36954afd51afc7c97c9de898346e5 SHA512 587839e7d532ef3c53e2c429b086eb6bd59290ce43687034400f8e0772cc4e97c9296694ad83c5fa3fdde37b8d8fef5bc150e9f81fcb9fe8712ffafb4be8b400
DIST pwman3-0.13.1.tar.gz 81775 BLAKE2B d470735a8d514b335f2cf0c0ca84db2f362324262fd22617a98084d2e34b3b37447c2519204525a582a2bb5365f82452819270ad26195537fb776dedcf432bd2 SHA512 8b729968b7817a82692a8f9424f81882e4568cf8ecf5de52037a176ca028aaa58cf238f1d92dab02fbbe547fb872f74440d6eb0bc7a4b0a30649b6d9e3008ee4

View File

@@ -0,0 +1,46 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{10..12} )
PYTHON_REQ_USE="sqlite"
DISTUTILS_USE_PEP517=setuptools
inherit distutils-r1 optfeature pypi
DESCRIPTION="A lightweight password-manager with multiple database backends"
HOMEPAGE="https://pwman3.github.io/pwman3/"
SRC_URI="https://github.com/pwman3/pwman3/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="~amd64"
IUSE="test"
RESTRICT="!test? ( test )"
RDEPEND="
>=dev-python/cryptography-2.3[${PYTHON_USEDEP}]
>=dev-python/colorama-0.4.0[${PYTHON_USEDEP}]
"
BDEPEND="
dev-python/setuptools-scm[${PYTHON_USEDEP}]
test? (
dev-python/pexpect[${PYTHON_USEDEP}]
)
"
python_prepare_all() {
export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
distutils-r1_python_prepare_all
}
python_test() {
"${EPYTHON}" -m tests.test_pwman || die "Tests fail with ${EPYTHON}"
}
pkg_postinst() {
optfeature "Support for mongodb" dev-python/pymongo
optfeature "Support for postgresql" dev-python/psycopg:2
optfeature "Support for mysql" dev-python/pymysql
}