anchor.diff:    ] ++ lib.optionals (withCvx) [ cvxpy ]
     ++ lib.optionals (withVisualization) [ matplotlib ]
     ++ lib.optionals (withJit) [ numba ];
  -  postInstall = "rm -rf $out/${python.sitePackages}/docs"; # this dir can create conflicts
   
     # Tests
     pythonImportsCheck = [ "qiskit.ignis" ];
     dontUseSetuptoolsCheck = true;
  -  preCheck = "export HOME=$TMPDIR";
  +  preCheck = ''
  +    export HOME=$TMPDIR
  +  '';
     checkInputs = [
       pytestCheckHook
       ddt
  
positive.code:     hash = "sha256-L5fwCMsN03ojiDvKIyqsGfUnwej1P7bpyHlL6mu7nh0=";
    };
  
    # hacky, fix https://github.com/Qiskit/qiskit-ignis/issues/532.
    # TODO: remove on qiskit-ignis v0.5.2
    postPatch = ''
      substituteInPlace qiskit/ignis/mitigation/expval/base_meas_mitigator.py --replace "plt.axes" "'plt.axes'"
    '';
  
    propagatedBuildInputs = [
      numpy
      qiskit-terra
  
negative.code: { lib
  , stdenv
  , pythonOlder
  , buildPythonPackage
  , fetchFromGitHub
  , numpy
  , qiskit-terra
  , scikit-learn
  