# Copyright 1999-2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 DISTUTILS_USE_PEP517=setuptools PYPI_PN="graphifyy" PYTHON_COMPAT=( python3_{13..14} ) inherit distutils-r1 optfeature pypi DESCRIPTION="Knowledge graph CLI and AI coding assistant skill installer" HOMEPAGE=" https://github.com/safishamsi/graphify/ https://pypi.org/project/graphifyy/ " LICENSE="MIT" SLOT="0" KEYWORDS="~amd64" IUSE="+ollama" RDEPEND=" >=dev-python/datasketch-1.6[${PYTHON_USEDEP}] >=dev-python/networkx-3.4[${PYTHON_USEDEP}] ollama? ( dev-python/openai[${PYTHON_USEDEP}] ) >=dev-python/rapidfuzz-3.0[${PYTHON_USEDEP}] >=dev-python/tree-sitter-0.23.0[${PYTHON_USEDEP}] dev-libs/tree-sitter-bash[python,${PYTHON_USEDEP}] dev-libs/tree-sitter-c[python,${PYTHON_USEDEP}] dev-libs/tree-sitter-cpp[python,${PYTHON_USEDEP}] dev-libs/tree-sitter-javascript[python,${PYTHON_USEDEP}] dev-libs/tree-sitter-json[python,${PYTHON_USEDEP}] dev-libs/tree-sitter-lua[python,${PYTHON_USEDEP}] dev-libs/tree-sitter-python[python,${PYTHON_USEDEP}] dev-libs/tree-sitter-ruby[python,${PYTHON_USEDEP}] dev-libs/tree-sitter-rust[python,${PYTHON_USEDEP}] " distutils_enable_tests import-check pkg_postinst() { optfeature "PDF extraction" dev-python/pypdf dev-python/markdownify optfeature "file watching and hooks" dev-python/watchdog optfeature "SVG graph export" dev-python/matplotlib optfeature "Office document support" dev-python/python-docx dev-python/openpyxl optfeature "OpenAI-compatible token counting" dev-python/tiktoken optfeature "Anthropic backend" dev-python/anthropic optfeature "AWS Bedrock backend" dev-python/boto3 elog "The upstream PyPI package is graphifyy; this package installs /usr/bin/graphify." elog "Only locally packaged tree-sitter Python bindings are hard dependencies." }