blob: 189826a7c2f942bf529430574bd9ad31f55ea9d5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# 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."
}
|