anchor.diff:  { lib
   , fetchurl
  -, fetchpatch
   , nixosTests
   , python3
   , ghostscript
  
positive.code: }:
  
  let
    py = python3.override {
      packageOverrides = self: super: {
        django = super.django_3;
  
        # Incompatible with aioredis 2
        aioredis = super.aioredis.overridePythonAttrs (oldAttrs: rec {
          version = "1.3.1";
          src = oldAttrs.src.override {
  
negative.code: in
  py.pkgs.pythonPackages.buildPythonApplication rec {
    pname = "paperless-ngx";
    version = "1.7.1";
  
    # Fetch the release tarball instead of a git ref because it contains the prebuilt fontend
    src = fetchurl {
      url = "https://github.com/paperless-ngx/paperless-ngx/releases/download/v${version}/${pname}-v${version}.tar.xz";
      hash = "sha256-8vx4hvbIqaChjPyS8Q0ar2bz/pLzEdxoF7P2gBEeFzc=";
    };
  
    format = "other";
  