paperless-ngx: make python overrides injectable
This commit is contained in:
@@ -27,30 +27,36 @@
|
||||
symlinkJoin,
|
||||
nltk-data,
|
||||
lndir,
|
||||
extraPythonPackageOverrides ? (_final: _prev: { }),
|
||||
}:
|
||||
let
|
||||
pnpm = pnpm_10;
|
||||
|
||||
python = python3.override {
|
||||
self = python;
|
||||
packageOverrides = final: prev: {
|
||||
django = prev.django_5;
|
||||
defaultPythonPackageOverrides = final: prev: {
|
||||
django = prev.django_5;
|
||||
|
||||
fido2 = prev.fido2.overridePythonAttrs {
|
||||
fido2 = prev.fido2.overridePythonAttrs {
|
||||
version = "1.2.0";
|
||||
|
||||
src = fetchPypi {
|
||||
pname = "fido2";
|
||||
version = "1.2.0";
|
||||
|
||||
src = fetchPypi {
|
||||
pname = "fido2";
|
||||
version = "1.2.0";
|
||||
hash = "sha256-45+VkgEi1kKD/aXlWB2VogbnBPpChGv6RmL4aqDTMzs=";
|
||||
};
|
||||
|
||||
pytestFlags = [ ];
|
||||
hash = "sha256-45+VkgEi1kKD/aXlWB2VogbnBPpChGv6RmL4aqDTMzs=";
|
||||
};
|
||||
|
||||
# tesseract5 may be overwritten in the paperless module and we need to propagate that to make the closure reduction effective
|
||||
ocrmypdf = prev.ocrmypdf_16.override { tesseract = tesseract5; };
|
||||
pytestFlags = [ ];
|
||||
};
|
||||
|
||||
# tesseract5 may be overwritten in the paperless module and we need to propagate that to make the closure reduction effective
|
||||
ocrmypdf = prev.ocrmypdf_16.override { tesseract = tesseract5; };
|
||||
};
|
||||
|
||||
python = python3.override {
|
||||
self = python;
|
||||
packageOverrides = lib.composeManyExtensions [
|
||||
defaultPythonPackageOverrides
|
||||
extraPythonPackageOverrides
|
||||
];
|
||||
};
|
||||
|
||||
path = lib.makeBinPath [
|
||||
|
||||
Reference in New Issue
Block a user