anchor.diff:  
     checkInputs = [ hypothesis ninja psutil ];
   
  -  doCheck = false; # tests take a long time for channel release, so doCheck should be overridden only when developing
  +  # Tests take a long time and may be flaky, so just sanity-check imports
  +  doCheck = false;
  +  pythonImportsCheck = [
  +    "torch"
  +  ];
  +
     checkPhase = with lib.versions; with lib.strings; concatStringsSep " " [
  -    # MKL 2019.5-only workaround. See: https://github.com/NixOS/nixpkgs/issues/75611
  -    (optionalString (blas.implementation == "mkl" && majorMinor blas.version == "2019.5") "KMP_INIT_AT_FORK=FALSE ")
       cudaStubEnv
       "${python.interpreter} test/run_test.py"
       "--exclude"
  
positive.code: 
    BUILD_NAMEDTENSOR = true;
    BUILD_DOCS = buildDocs;
    USE_MKLDNN = mklDnnSupport;
    preBuild = ''
      export MAX_JOBS=$NIX_BUILD_CORES
      ${python.interpreter} setup.py build --cmake-only
  
negative.code:     ninja
    ] ++ lib.optionals cudaSupport [ cudatoolkit_joined ];
  
    buildInputs = [ blas blas.provider dnnl ]
      ++ lib.optionals cudaSupport [ cudnn magma nccl ]
      ++ lib.optionals stdenv.isLinux [ numactl ];
  
  