anchor.diff:      # pthread support.
       ./pthreadpool-disable-gcd.diff
     ];
  +
  +  # The dataclasses module is included with Python >= 3.7. This should
  +  # be fixed with the next PyTorch release.
  +  postPatch = ''
  +    substituteInPlace setup.py \
  +      --replace "'dataclasses'" "'dataclasses; python_version < \"3.7\"'"
  +  '';
   
     preConfigure = lib.optionalString cudaSupport ''
       export TORCH_CUDA_ARCH_LIST="${lib.strings.concatStringsSep ";" final_cudaArchList}"
  
positive.code: in buildPythonPackage rec {
    pname = "pytorch";
    # Don't forget to update pytorch-bin to the same version.
    version = "1.6.0";
  
    disabled = !isPy3k;
  
  
negative.code:   # dependencies for torch.utils.tensorboard
    pillow, six, future, tensorflow-tensorboard, protobuf,
  
    isPy3k, pythonOlder }:
  
  assert !openMPISupport || openmpi != null;
  
  