9 python3Packages.buildPythonApplication {
10 pname = "chatgpt-retrieval-plugin";
11 version = "unstable-2023-03-28";
14 src = fetchFromGitHub {
16 repo = "chatgpt-retrieval-plugin";
17 rev = "958bb787bf34823538482a9eb3157c5bf994a182";
18 hash = "sha256-fCNGzK5Uji6wGDTEwAf4FF/i+RC7ny3v4AsvQwIbehY=";
22 substituteInPlace pyproject.toml \
23 --replace 'fastapi = "^0.92.0"' 'fastapi = ">=0.92.0"' \
24 --replace 'python-dotenv = "^0.21.1"' 'python-dotenv = "*"' \
25 --replace 'python-multipart = "^0.0.6"' 'python-multipart = "^0.0.5"' \
26 --replace 'redis = "4.5.1"' 'redis = "^4.5.1"' \
27 --replace 'tiktoken = "^0.2.0"' 'tiktoken = "^0.3.0"' \
28 --replace 'packages = [{include = "server"}]' 'packages = [{include = "server"}, {include = "models"}, {include = "datastore"}, {include = "services"}]'
30 substituteInPlace server/main.py \
31 --replace 'directory=".well-known"' 'directory="/var/lib/chatgpt-retrieval-plugin/.well-known"' \
32 --replace '0.0.0.0' '127.0.0.1' \
33 --replace '8000' '8080'
35 ${dasel}/bin/dasel put -t string -f pyproject.toml -v '.well-known/*' '.tool.poetry.include.[]'
38 nativeBuildInputs = with python3Packages; [
42 propagatedBuildInputs = with python3.pkgs; [
62 updateScript = nix-update-script { };
66 broken = true; # dependencies are not up to date, the project doesn't look well maintained, this doesn't look like it's going in the right direction. I'm happy to handle maintainership to whoever wants to.
67 homepage = "https://github.com/openai/chatgpt-retrieval-plugin";
68 description = "Tool to search and find personal or work documents by asking questions in everyday language";
69 license = licenses.mit;
70 maintainers = with maintainers; [ happysalada ];