paperless-ngx: fix subpath installation

This fixates uvicorn to fix issues when using a subpath
This commit is contained in:
Leona Maroni 2024-03-24 23:56:26 +01:00
parent 44d0940ea5
commit eccde4643b
No known key found for this signature in database
GPG Key ID: D5B08ADFC75E3605

View File

@ -31,7 +31,23 @@ let
hash = "sha256-M1CnB1adk02lJuFsm0zzjSx/l9hKHJMt1Wh2a5Xtdyg=";
};
python = python3;
# subpath installation is broken with uvicorn >= 0.26
# https://github.com/NixOS/nixpkgs/issues/298719
# https://github.com/paperless-ngx/paperless-ngx/issues/5494
python = python3.override {
packageOverrides = self: super: {
uvicorn = super.uvicorn.overridePythonAttrs (oldAttrs: {
version = "0.25.0";
src = fetchFromGitHub {
owner = "encode";
repo = "uvicorn";
rev = "0.25.0";
hash = "sha256-ng98DTw49zyFjrPnEwfnPfONyjKKZYuLl0qduxSppYk=";
};
});
};
};
path = lib.makeBinPath [
ghostscript