anchor.diff:  
     nativeBuildInputs = stdenv.lib.optionals enableQt [ wrapQtAppsHook ];
   
  -  propagatedBuildInputs = with py.pkgs; [
  +  propagatedBuildInputs = with python3.pkgs; [
       aiohttp
       aiohttp-socks
       aiorpcx
       attrs
       bitstring
  +    cryptography
       dnspython
  -    ecdsa
       jsonrpclib-pelix
       matplotlib
       pbkdf2
       protobuf
  -    pycryptodomex
       pysocks
       qrcode
       requests
  
positive.code:     wrapQtApp $out/bin/electrum
    '';
  
    checkInputs = with py.pkgs; [ pytest ];
  
    checkPhase = ''
      py.test electrum/tests
      $out/bin/electrum help >/dev/null
    '';
  
  
negative.code:   };
  in
  
  python3.pkgs.buildPythonApplication {
    pname = "electrum";
    inherit version;
  
    src = fetchurl {
      url = "https://download.electrum.org/${version}/Electrum-${version}.tar.gz";
      sha256 = "0k5xf97ga3ixd02g1y6v84hbxd8yhvpj5iz2rhxs8wfnkfwibzh4";
    };
  
    postUnpack = ''
  