anchor.diff:  }:
   
   let
  +  # Use specific package versions required by paperless-ngx
     py = python3.override {
       packageOverrides = self: super: {
  -      django = super.django_3;
  -
  -      # Incompatible with aioredis 2
  +      django = super.django_4;
  +
  +      # django-extensions 3.1.5 is required, but its tests are incompatible with Django 4
  +      django-extensions = super.django-extensions.overridePythonAttrs (_: {
  +        doCheck = false;
  +      });
  +
         aioredis = super.aioredis.overridePythonAttrs (oldAttrs: rec {
           version = "1.3.1";
           src = oldAttrs.src.override {
  
positive.code: in
  py.pkgs.pythonPackages.buildPythonApplication rec {
    pname = "paperless-ngx";
    version = "1.6.0";
  
    src = fetchurl {
      url = "https://github.com/paperless-ngx/paperless-ngx/releases/download/ngx-${version}/${pname}-${version}.tar.xz";
      sha256 = "07mrxbwahkm00n9nvssd6d13p80w333g84cd38bzp0l34nzim5zl";
    };
  
    format = "other";
  
negative.code:     python-magic
      pytz
      pyyaml
      pyzbar
      redis
      regex
      reportlab
  