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:   doCheck = !stdenv.isDarwin;
  
    checkPhase = ''
      ${lib.optionalString (!enableRedis) "rm -r tests/replication # these tests need the optional dependency 'hiredis'"}
      PYTHONPATH=".:$PYTHONPATH" ${python3.interpreter} -m twisted.trial tests
    '';
  
  
negative.code:   buildInputs = [ openssl ];
  
    propagatedBuildInputs = [
      authlib
      bcrypt
      bleach
      canonicaljson
      daemonize
      frozendict
      ijson
      jinja2
      jsonschema
      lxml
  