anchor.diff:      psutil
       psycopg2
       pyasn1
  +    pyjwt
       pymacaroons
       pynacl
       pyopenssl
       pysaml2
       pyyaml
       requests
  +    setuptools
       signedjson
       sortedcontainers
       treq
       twisted
  +    typing-extensions
       unpaddedbase64
  -    typing-extensions
  -    authlib
  -    pyjwt
     ] ++ lib.optional enableSystemd systemd
       ++ lib.optional enableRedis hiredis;
   
  
positive.code: in
  buildPythonApplication rec {
    pname = "matrix-synapse";
    version = "1.34.0";
  
    src = fetchPypi {
      inherit pname version;
      sha256 = "sha256-lXVJfhcH9lKOCHn5f4Lc/OjgEYa5IpauKRhBsFXNWLw=";
    };
  
    patches = [
  
negative.code:   buildInputs = [ openssl ];
  
    propagatedBuildInputs = [
      authlib
      bcrypt
      bleach
      canonicaljson
      daemonize
      frozendict
      ijson
      jinja2
      jsonschema
      lxml
  