anchor.diff:  buildPythonPackage rec {
     pname = "twisted";
     version = "22.4.0";
  +  format = "setuptools";
   
     disabled = pythonOlder "3.6";
  -
  -  format = "setuptools";
   
     src = fetchPypi {
       pname = "Twisted";
  
positive.code:     git
      glibcLocales
      pyhamcrest
    ] ++ passthru.extras.conch
    ++ passthru.extras.tls;
  
    checkPhase = ''
      export SOURCE_DATE_EPOCH=315532800
  
negative.code:     ${python.interpreter} -m twisted.trial twisted
    '';
  
    passthru = {
      extras-require = {
        conch = [ appdirs bcrypt cryptography pyasn1 ];
        contextvars = lib.optionals (pythonOlder "3.7") [ contextvars ];
        http2 = [ h2 priority ];
        serial = [ pyserial ];
        tls = [ idna pyopenssl service-identity ];
      };
  
      tests = {
        inherit
          cassandra-driver
          klein
          magic-wormhole
          scrapy
          treq
          txaio
          txamqp
          txrequests
          txtorcon
          thrift;
        inherit (nixosTests) buildbot matrix-synapse;
      };
    };
  
    meta = with lib; {
  