# 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} )
DISTUTILS_USE_PEP517=standalone

inherit python-r1 gs-pypi

DESCRIPTION="LLM-App is a library for creating responsive AI applications leveraging OpenAI/Hugging Face APIs to provide responses to user queries based on live data sources. Build your own LLM application in 30 lines of code, no vector database required."

HOMEPAGE="https://github.com/pathwaycom/llm-app"
LICENSE="MIT"
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="local unstructured unstructured-to-sql"
DEPENDENCIES="<dev-python/diskcache-6.0.0[${PYTHON_USEDEP}]
	dev-python/openai[${PYTHON_USEDEP}]
	dev-python/pathway[${PYTHON_USEDEP}]
	unstructured-to-sql? ( <dev-python/psycopg-4.0.0[${PYTHON_USEDEP}] )
	<dev-python/requests-3.0.0[${PYTHON_USEDEP}]
	local? ( dev-python/sentence-transformers[${PYTHON_USEDEP}] )
	dev-python/streamlit[${PYTHON_USEDEP}]
	unstructured? ( dev-python/tiktoken[${PYTHON_USEDEP}] )
	unstructured-to-sql? ( dev-python/tiktoken[${PYTHON_USEDEP}] )
	local? ( dev-python/torch[${PYTHON_USEDEP}] )
	unstructured? ( dev-python/unstructured[${PYTHON_USEDEP}] )
	unstructured-to-sql? ( dev-python/unstructured[${PYTHON_USEDEP}] )"
BDEPEND="${DEPENDENCIES}"
RDEPEND="${DEPENDENCIES}"