# Copyright 2020-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

PYTHON_COMPAT=( python3_{7,8,9} )
DISTUTILS_USE_SETUPTOOLS=bdepend

inherit distutils-r1 xdg

DESCRIPTION="Krapplet (keyring applet): a Linux graphical password manager"
HOMEPAGE="https://gitlab.com/hfernh/krapplet https://pypi.org/project/krapplet"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"

LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
IUSE="+gnome-keyring pass"
REQUIRED_USE="|| ( gnome-keyring pass )"

# Upstream does not provide any test suite.
RESTRICT="test"

RDEPEND="
	dev-libs/glib
	dev-libs/gobject-introspection
	gnome-keyring? ( dev-python/secretstorage )
	pass? ( dev-python/python-gnupg )
	x11-libs/gtk+:3"

BDEPEND="${RDEPEND}"
DEPEND="${BDEPEND}"
