anchor.diff:  
     preBuild = ''
       sed -i 's,usr_share = .*,usr_share = "'$out'/share",g' setup.py
  -    pyrcc5 icons.qrc -o gui/qt/icons_rc.py
  +    pyrcc5 icons.qrc -o electrum/gui/qt/icons_rc.py
       # Recording the creation timestamps introduces indeterminism to the build
  -    sed -i '/Created: .*/d' gui/qt/icons_rc.py
  -    sed -i "s|name = 'libzbar.*'|name='${zbar}/lib/libzbar.so'|" lib/qrscanner.py
  +    sed -i '/Created: .*/d' electrum/gui/qt/icons_rc.py
  +    sed -i "s|name = 'libzbar.*'|name='${zbar}/lib/libzbar.so'|" electrum/qrscanner.py
     '';
   
     postInstall = ''
  
positive.code: { stdenv, fetchurl, python3, python3Packages, zbar }:
  
  python3Packages.buildPythonApplication rec {
    name = "electrum-${version}";
    version = "3.1.3";
  
    src = fetchurl {
      url = "https://download.electrum.org/${version}/Electrum-${version}.tar.gz";
      sha256 = "05m28yd3zr9awjhaqikf4rg08j5i4ygm750ip1z27wl446sysniy";
    };
  
    propagatedBuildInputs = with python3Packages; [
  
negative.code:     pbkdf2
      protobuf
      pyaes
      pycryptodomex
      pyqt5
      pysocks
      qdarkstyle
      qrcode
      requests
      tlslite
      typing
  
      # plugins
      keepkey
  