anchor.diff:                  wrapt
                   zeroconf
                   zipstream-new
  -              ] ++ lib.optionals stdenv.isDarwin [ py.pkgs.appdirs ];
  -
  -              checkInputs = with super; [ pytestCheckHook mock ddt ];
  +              ] ++ lib.optionals stdenv.isDarwin [
  +                py.pkgs.appdirs
  +              ];
  +
  +              checkInputs = with super; [
  +                ddt
  +                mock
  +                pytestCheckHook
  +              ];
   
                 patches = [
                   # substitute pip and let it find out, that it can't write anywhere
  
positive.code:                   "colorlog"
                    "emoji"
                    "immutabledict"
                    "sentry-sdk"
                    "watchdog"
                    "wrapt"
  
negative.code:                 nose
                ];
                pytestFlagsArray = [ "zeroconf/test.py" ];
              });
            }
          )
  
          # Octoprint pulls in celery indirectly but has no support for the up-to-date releases
          (
            self: super: {
              celery = super.celery.overrideAttrs (oldAttrs: rec {
                version = "5.0.0";
                src = oldAttrs.src.override {
                  inherit version;
                  sha256 = "sha256-MTkw/d3nA9jjcCmjBL+RQpzRGu72PFfebayp2Vjh8lU=";
                };
                doCheck = false;
              });
            }
          )
  
          # Octoprint would allow later sentry-sdk releases but not later click releases
          (
            self: super: {
              sentry-sdk = super.sentry-sdk.overrideAttrs (oldAttrs: rec {
                pname = "sentry-sdk";
                version = "1.4.3";
  
                src = fetchFromGitHub {
                  owner = "getsentry";
                  repo = "sentry-python";
                  rev = version;
                  sha256 = "sha256-vdE6eqELMM69CWHaNYhF0HMCTV3tQsJlMHAA96oCy8c=";
                };
                disabledTests = [
                  "test_apply_simulates_delivery_info"
                  "test_auto_enabling_integrations_catches_import_error"
                ];
                disabledTestPaths = [
                  # Don't test integrations
                  "tests/integrations"
                ];
              });
            }
          )
  