anchor.diff:      owner = "spesmilo";
       repo = "electrum";
       rev = version;
  -    sha256 = "0mdbg2sq56nv0hx0rrcbgrv1lv89nqc6cqigivgk665hhjm4v5kq";
  +    sha256 = "06vcbj9p96d8v4xjlygzr74lqllb9adn8k0racajzq61ijb0imi2";
   
       extraPostFetch = ''
         mv $out ./all
  
positive.code:   };
  in
  
  py.pkgs.buildPythonApplication {
    pname = "electrum";
    inherit version;
  
    src = fetchurl {
      url = "https://download.electrum.org/${version}/Electrum-${version}.tar.gz";
      sha256 = "0sp8p720g3rqnh52ddhaw2v4hjgpxcwbackw9qc1g9xac1q0942d";
    };
  
    postUnpack = ''
  
negative.code:     wrapQtApp $out/bin/electrum
    '';
  
    checkInputs = with python3.pkgs; [ pytestCheckHook pycryptodomex ];
  
    pytestFlagsArray = [ "electrum/tests" ];
  
    disabledTests = [
      "test_loop"  # test tries to bind 127.0.0.1 causing permission error
    ];
  
    postCheck = ''
      $out/bin/electrum help >/dev/null
    '';
  
  