# automatically generated by g-sorcery
# please do not edit this file

EAPI=8

REALNAME="${PN}"
LITERALNAME="${PN}"
REALVERSION="${PV}"
DIGEST_SOURCES="yes"
PYTHON_COMPAT=( python{3_11,3_12,3_13,3_14} )
DISTUTILS_USE_PEP517=standalone

inherit python-r1 gs-pypi

DESCRIPTION="Extracts emails and attachments saved in Microsoft Outlook's .msg files"

HOMEPAGE="https://github.com/TeamMsgExtractor/msg-extractor"
LICENSE="GPL-3"
SRC_URI="https://files.pythonhosted.org/packages/source/${REALNAME::1}/${REALNAME}/${REALNAME//-/_}-${REALVERSION}.tar.gz"
SOURCEFILE="${REALNAME//-/_}-${REALVERSION}.tar.gz"
RESTRICT="test"

SLOT="0"
KEYWORDS="~amd64 ~x86"

IUSE="all encoding image mime readthedocs"
DEPENDENCIES="~dev-python/olefile-0.47[${PYTHON_USEDEP}]
	<dev-python/tzlocal-6.0[${PYTHON_USEDEP}]
	dev-python/compressed-rtf[${PYTHON_USEDEP}]
	dev-python/ebcdic[${PYTHON_USEDEP}]
	<dev-python/beautifulsoup4-4.14[${PYTHON_USEDEP}]
	dev-python/RTFDE[${PYTHON_USEDEP}]
	dev-python/red-black-tree-mod[${PYTHON_USEDEP}]
	all? ( dev-python/extract-msg[${PYTHON_USEDEP}] )
	all? ( dev-python/extract-msg[${PYTHON_USEDEP}] )
	all? ( dev-python/extract-msg[${PYTHON_USEDEP}] )
	encoding? ( <dev-python/chardet-6.0[${PYTHON_USEDEP}] )
	image? ( <dev-python/pillow-10.0[${PYTHON_USEDEP}] )
	mime? ( <dev-python/python-magic-0.5[${PYTHON_USEDEP}] )
	readthedocs? ( dev-python/sphinx-rtd-theme[${PYTHON_USEDEP}] )"
BDEPEND="${DEPENDENCIES}"
RDEPEND="${DEPENDENCIES}"