lol

python3Packages.qiskit-ignis: fix aarch64 build

Also remove unused patch & unneeded docs delete (they're not in $out).

+6 -10
+6 -10
pkgs/development/python-modules/qiskit-ignis/default.nix
··· 1 1 { lib 2 + , stdenv 2 3 , pythonOlder 3 4 , buildPythonPackage 4 5 , fetchFromGitHub 5 - , python 6 6 , numpy 7 7 , qiskit-terra 8 8 , scikit-learn ··· 34 34 rev = version; 35 35 hash = "sha256-L5fwCMsN03ojiDvKIyqsGfUnwej1P7bpyHlL6mu7nh0="; 36 36 }; 37 - 38 - # hacky, fix https://github.com/Qiskit/qiskit-ignis/issues/532. 39 - # TODO: remove on qiskit-ignis v0.5.2 40 - postPatch = '' 41 - substituteInPlace qiskit/ignis/mitigation/expval/base_meas_mitigator.py --replace "plt.axes" "'plt.axes'" 42 - ''; 43 37 44 38 propagatedBuildInputs = [ 45 39 numpy ··· 49 43 ] ++ lib.optionals (withCvx) [ cvxpy ] 50 44 ++ lib.optionals (withVisualization) [ matplotlib ] 51 45 ++ lib.optionals (withJit) [ numba ]; 52 - postInstall = "rm -rf $out/${python.sitePackages}/docs"; # this dir can create conflicts 53 46 54 47 # Tests 55 48 pythonImportsCheck = [ "qiskit.ignis" ]; 56 49 dontUseSetuptoolsCheck = true; 57 - preCheck = "export HOME=$TMPDIR"; 50 + preCheck = '' 51 + export HOME=$TMPDIR 52 + ''; 58 53 checkInputs = [ 59 54 pytestCheckHook 60 55 ddt ··· 63 58 ]; 64 59 disabledTests = [ 65 60 "test_tensored_meas_cal_on_circuit" # Flaky test, occasionally returns result outside bounds 66 - "test_qv_fitter" # execution hangs, ran for several minutes 61 + ] ++ lib.optionals stdenv.isAarch64 [ 62 + "test_fitters" # Fails check that arrays are close. Might be due to aarch64 math issues. 67 63 ]; 68 64 69 65 meta = with lib; {