anchor.diff:      # Fix from:
       # https://github.com/pytorch/pytorch/pull/40584
       #
  -    # This patch can be removed with the next major version (1.6.0).
  +    # This patch can be removed with the next major version (1.7.0).
       (fetchpatch {
         name = "qnnpack-neon-fix.patch";
         url = "https://github.com/pytorch/pytorch/commit/7676682584d0caf9243bce74ea0a88711ec4a807.diff";
  
positive.code:     repo   = "pytorch";
      rev    = "v${version}";
      fetchSubmodules = true;
      sha256 = "1xjbn4hi96m7xslv3p2jc6qcsng0fx3w1m6isqfah81piljf8wng";
    };
  
    patches = lib.optionals stdenv.isAarch64 [
  
negative.code:     "LD_LIBRARY_PATH=${cudaStub}\${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH ";
  
  in buildPythonPackage rec {
    version = "1.6.0";
    pname = "pytorch";
    disabled = !isPy3k;
  
  