anchor.diff: -{ lib, stdenv, python3
  +{ lib, stdenv, python3, openssl
   , enableSystemd ? stdenv.isLinux
   }:
   
  
positive.code: 
  in buildPythonApplication rec {
    pname = "matrix-synapse";
    version = "0.99.5.2";
  
    src = fetchPypi {
      inherit pname version;
      sha256 = "0c1kf9zq7cg9scwnvph4vwk449gypbprmdjzrzrg0wp1rcc8h3gn";
    };
  
    patches = [
  
negative.code:     unpaddedbase64
    ] ++ lib.optional enableSystemd systemd;
  
    checkInputs = [ mock parameterized openssl ];
  
    checkPhase = ''
      PYTHONPATH=".:$PYTHONPATH" ${python3.interpreter} -m twisted.trial tests
  