diff --git a/custom/pkgs/by-category/pythonPackages/ra/raganything/default.nix b/custom/pkgs/by-category/pythonPackages/ra/raganything/default.nix index c22acce..0ffedc0 100644 --- a/custom/pkgs/by-category/pythonPackages/ra/raganything/default.nix +++ b/custom/pkgs/by-category/pythonPackages/ra/raganything/default.nix @@ -15,10 +15,10 @@ buildPythonPackage rec { owner = "HKUDS"; repo = "RAG-Anything"; rev = "v${version}"; - hash = lib.fakeSha256; # replace with real hash after first build attempt + hash = "sha256-yepiLYzPD6UcJRbAbovg/BwFE8nh903o/tHypiHGKSw="; }; - disabled = pythonOlder "3.10"; # upstream pyproject: requires-python >= 3.10 + disabled = pythonOlder "3.10"; format = "setuptools"; nativeBuildInputs = [ @@ -26,22 +26,21 @@ buildPythonPackage rec { wheel ]; - # Upstream's requirements.txt in this tag is a single line; make it parseable for setup.py. - # postPatch = '' - # cat > requirements.txt <<'EOF' - # huggingface_hub - # lightrag-hku - # mineru[core] - # tqdm - # EOF - # ''; + postPatch = '' + cat > requirements.txt <<'EOF' + huggingface_hub + lightrag-hku + mineru[core] + tqdm + EOF + ''; - # Minimal/viable: don’t run tests, don’t force import checks (runtime deps may be heavy / not packaged yet). doCheck = false; meta = with lib; { description = "RAGAnything: All-in-One RAG System"; homepage = "https://github.com/HKUDS/RAG-Anything"; license = licenses.mit; + maintainer = [ ]; }; }