11 # Optional package inputs
12 withVisualization ? false,
25 buildPythonPackage rec {
26 pname = "qiskit-ignis";
28 format = "setuptools";
30 disabled = pythonOlder "3.6";
32 # Pypi's tarball doesn't contain tests
33 src = fetchFromGitHub {
35 repo = "qiskit-ignis";
36 rev = "refs/tags/${version}";
37 hash = "sha256-WyLNtZhtuGzqCJdOBvtBjZZiGFQihpeSjJQtP7lI248=";
40 propagatedBuildInputs =
47 ++ lib.optionals (withCvx) [ cvxpy ]
48 ++ lib.optionals (withVisualization) [ matplotlib ]
49 ++ lib.optionals (withJit) [ numba ];
52 pythonImportsCheck = [ "qiskit.ignis" ];
53 dontUseSetuptoolsCheck = true;
65 "test_tensored_meas_cal_on_circuit" # Flaky test, occasionally returns result outside bounds
67 ++ lib.optionals stdenv.hostPlatform.isAarch64 [
68 "test_fitters" # Fails check that arrays are close. Might be due to aarch64 math issues.
72 description = "Qiskit tools for quantum hardware verification, noise characterization, and error correction";
73 homepage = "https://qiskit.org/ignis";
74 downloadPage = "https://github.com/QISKit/qiskit-ignis/releases";
75 changelog = "https://qiskit.org/documentation/release_notes.html";
76 license = licenses.asl20;
77 maintainers = with maintainers; [ drewrisinger ];