dev-python/pykeepass - 4.2.0 (gentoo)

Search

Install

Install this version:

emerge -a =dev-python/pykeepass-4.2.0

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =dev-python/pykeepass-4.2.0

Or alternatively:

emerge --autounmask-write -a =dev-python/pykeepass-4.2.0

Package Information

Description:
Python library to interact with keepass databases (supports KDBX3 and KDBX4)
Homepage:
https://github.com/libkeepass/pykeepass/ https://pypi.org/project/pykeepass/
License:
GPL-3

Ebuild Details

Version EAPI Keywords Slot
4.2.0 8 ~amd64 0
View Raw Ebuild
# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{12..15} )

inherit distutils-r1

DESCRIPTION="Python library to interact with keepass databases (supports KDBX3 and KDBX4)"
HOMEPAGE="
	https://github.com/libkeepass/pykeepass/
	https://pypi.org/project/pykeepass/
"
# no tests in sdist
SRC_URI="
	https://github.com/libkeepass/pykeepass/archive/refs/tags/v${PV}.tar.gz
		-> ${P}.gh.tar.gz
"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"

RDEPEND="
	>=dev-python/argon2-cffi-18.1.0[${PYTHON_USEDEP}]
	>=dev-python/construct-2.10.53[${PYTHON_USEDEP}]
	dev-python/importlib-metadata[${PYTHON_USEDEP}]
	dev-python/lxml[${PYTHON_USEDEP}]
	>=dev-python/pycryptodome-3.6.2[${PYTHON_USEDEP}]
	>=dev-python/pyotp-2.9.0[${PYTHON_USEDEP}]
"

distutils_enable_tests unittest

python_prepare() {
	sed -e 's|pycryptodomex|pycryptodome|' -i pyproject.toml || die
	sed -e 's|from Cryptodome|from Crypto|' -i pykeepass/kdbx_parsing/{common,twofish}.py || die
}

python_test() {
	eunittest tests.tests
}

Inherited Eclasses

Dependencies

RDEPEND

	>=dev-python/argon2-cffi-18.1.0[]
	>=dev-python/construct-2.10.53[]
	dev-python/importlib-metadata[]
	dev-python/lxml[]
	>=dev-python/pycryptodome-3.6.2[]
	>=dev-python/pyotp-2.9.0[]

Manifest for 4.2.0

Type File Size Source URLs
DIST pykeepass-4.2.0.gh.tar.gz 115337 bytes https://github.com/libkeepass/pykeepass/archive/refs/tags/v4.2.0.tar.gz