mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-04-07 03:10:15 -04:00
Part-of: https://github.com/gentoo/guru/pull/447 Closes: https://github.com/gentoo/guru/pull/447 Signed-off-by: David Roman <stkw0@disroot.org>
42 lines
944 B
Bash
42 lines
944 B
Bash
# Copyright 2024-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
PYTHON_COMPAT=( python3_{12..14} pypy3_11 )
|
|
PYTHON_REQ_USE="sqlite"
|
|
DISTUTILS_USE_PEP517=setuptools
|
|
DISTUTILS_SINGLE_IMPL=1
|
|
inherit distutils-r1
|
|
|
|
DESCRIPTION="Tool to extract passwords from Mozilla (Firefox, Thunderbird, etc.) profiles"
|
|
HOMEPAGE="https://github.com/Unode/firefox_decrypt"
|
|
SRC_URI="https://github.com/unode/${PN/-/_}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
|
|
S="${WORKDIR}/${PN/-/_}-${PV}"
|
|
|
|
LICENSE="GPL-3"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64"
|
|
|
|
RDEPEND="dev-libs/nss"
|
|
BDEPEND="
|
|
$(python_gen_cond_dep 'dev-python/setuptools-scm[${PYTHON_USEDEP}]')
|
|
"
|
|
|
|
distutils_enable_tests unittest
|
|
|
|
src_prepare() {
|
|
rm tests/version.t || die
|
|
distutils-r1_src_prepare
|
|
}
|
|
|
|
python_prepare_all() {
|
|
python_fix_shebang "${S}"/tests
|
|
distutils-r1_python_prepare_all
|
|
}
|
|
|
|
python_test() {
|
|
cd "${S}"/tests || die
|
|
${EPYTHON} run_all -v || die
|
|
}
|