graphify: 0.4.23 -> 0.9.28 (#546600)

This commit is contained in:
Felix Bühler
2026-08-04 21:52:41 +00:00
committed by GitHub

View File

@@ -8,34 +8,49 @@
python3Packages.buildPythonApplication rec {
__structuredAttrs = true;
pname = "graphify";
version = "0.4.23";
version = "0.9.28";
pyproject = true;
src = fetchFromGitHub {
owner = "Graphify-Labs";
repo = "graphify";
tag = "v${version}";
hash = "sha256-QEzB1tFBqGhpmI7oudMRC1Ia0CDcm+GYt6AgxMA5zDo=";
hash = "sha256-iu/ARF1ylyrDUWke70kLpji4azfIeBSDSQ6uS+CKYiw=";
};
build-system = [
python3.pkgs.setuptools
];
# The bindings in python3Packages.tree-sitter-grammars track the grammar
# repos, whose versions drift from the pins upstream declares.
pythonRelaxDeps = [
"tree-sitter-fortran"
"tree-sitter-groovy"
"tree-sitter-julia"
"tree-sitter-kotlin"
];
dependencies =
with python3.pkgs;
[
networkx
numpy
rapidfuzz
tree-sitter
]
++ (with python3.pkgs.tree-sitter-grammars; [
tree-sitter-bash
tree-sitter-c
tree-sitter-c-sharp
tree-sitter-cpp
tree-sitter-elixir
tree-sitter-fortran
tree-sitter-go
tree-sitter-groovy
tree-sitter-java
tree-sitter-javascript
tree-sitter-json
tree-sitter-julia
tree-sitter-kotlin
tree-sitter-lua
@@ -53,11 +68,21 @@ python3Packages.buildPythonApplication rec {
]);
optional-dependencies = with python3.pkgs; {
anthropic = [
anthropic
];
bedrock = [
boto3
];
chinese = [
jieba
];
leiden = [
graspologic
];
mcp = [
mcp
starlette
];
neo4j = [
neo4j
@@ -66,10 +91,17 @@ python3Packages.buildPythonApplication rec {
openpyxl
python-docx
];
openai = [
openai
tiktoken
];
pdf = [
html2text
markdownify
pypdf
];
postgres = [
psycopg
];
svg = [
matplotlib
];
@@ -82,11 +114,24 @@ python3Packages.buildPythonApplication rec {
];
};
pythonImportsCheck = [ "graphify" ];
# The attribute and the command are `graphify`, but upstream publishes the
# distribution as `graphifyy`. pythonMetadataCheckPhase resolves the
# distribution by `pname`, so it cannot find it:
# nix-build -E 'with import ./. {};
# python3.withPackages (_: [ (python3.pkgs.toPythonModule graphify) ])'
# => PackageNotFoundError: No package metadata was found for graphify
dontCheckPythonMetadata = true;
meta = {
description = "AI coding assistant skill. Turn any folder of code, docs, papers, images, or videos into a queryable knowledge graph.";
homepage = "https://github.com/Graphify-Labs/graphify";
changelog = "https://github.com/Graphify-Labs/graphify/blob/${src.rev}/CHANGELOG.md";
license = lib.licenses.mit;
changelog = "https://github.com/Graphify-Labs/graphify/blob/${src.tag}/CHANGELOG.md";
license = with lib.licenses; [
asl20
mit
];
maintainers = with lib.maintainers; [ stunkymonkey ];
mainProgram = "graphify";
};