3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/qiskit-ignis/default.nix

64 lines
1.5 KiB
Nix
Raw Normal View History

{ lib
, pythonOlder
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
2020-05-11 22:32:41 +01:00
, python
, numpy
, qiskit-terra
, scikitlearn
, scipy
# Check Inputs
, pytestCheckHook
, ddt
, pyfakefs
, qiskit-aer
}:
buildPythonPackage rec {
pname = "qiskit-ignis";
version = "0.4.0";
disabled = pythonOlder "3.6";
# Pypi's tarball doesn't contain tests
src = fetchFromGitHub {
owner = "Qiskit";
repo = "qiskit-ignis";
rev = version;
sha256 = "07mxhaknkp121xm6mgrpcrbj9qw6j924ra3k0s6vr8qgvfcxvh0y";
};
propagatedBuildInputs = [
numpy
qiskit-terra
scikitlearn
scipy
];
2020-05-11 22:32:41 +01:00
postInstall = "rm -rf $out/${python.sitePackages}/docs"; # this dir can create conflicts
# Tests
pythonImportsCheck = [ "qiskit.ignis" ];
dontUseSetuptoolsCheck = true;
2020-05-11 22:32:41 +01:00
preCheck = "export HOME=$TMPDIR";
checkInputs = [
pytestCheckHook
ddt
pyfakefs
qiskit-aer
];
disabledTests = [
"test_tensored_meas_cal_on_circuit" # Flaky test, occasionally returns result outside bounds
"test_qv_fitter" # execution hangs, ran for several minutes
];
meta = with lib; {
description = "Qiskit tools for quantum hardware verification, noise characterization, and error correction";
homepage = "https://qiskit.org/ignis";
downloadPage = "https://github.com/QISKit/qiskit-ignis/releases";
changelog = "https://qiskit.org/documentation/release_notes.html";
license = licenses.asl20;
maintainers = with maintainers; [ drewrisinger ];
};
}