python3Packages.qiskit-terra: 0.17.0 -> 0.17.4

Also unbreak build on master by disabling tests that compare visual
matplotlib images.

Also remove force deletes from postCheck.
This commit is contained in:
Drew Risinger 2021-04-27 14:21:34 -04:00
parent bc9d05509a
commit d173e91589

View file

@ -1,4 +1,5 @@
{ lib { lib
, stdenv
, pythonOlder , pythonOlder
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
@ -56,7 +57,7 @@ in
buildPythonPackage rec { buildPythonPackage rec {
pname = "qiskit-terra"; pname = "qiskit-terra";
version = "0.17.0"; version = "0.17.4";
disabled = pythonOlder "3.6"; disabled = pythonOlder "3.6";
@ -64,7 +65,7 @@ buildPythonPackage rec {
owner = "Qiskit"; owner = "Qiskit";
repo = pname; repo = pname;
rev = version; rev = version;
hash = "sha256-LbNbaHAWAVG5YLc9juuwcOlrREBW6OjEl7VPtACfl3I="; hash = "sha256-JyNuke+XPqjLVZbvPud9Y7k0+EmvETVKcOYcDldBiVo=";
}; };
nativeBuildInputs = [ cython ]; nativeBuildInputs = [ cython ];
@ -106,11 +107,17 @@ buildPythonPackage rec {
"test/python/classical_function_compiler/" "test/python/classical_function_compiler/"
]; ];
disabledTests = [ disabledTests = [
# Not working on matplotlib >= 3.4.0, checks images match.
"test_plot_circuit_layout"
# Flaky tests # Flaky tests
"test_cx_equivalence" "test_cx_equivalence"
"test_pulse_limits" "test_pulse_limits"
"test_1q_random"
] ++ lib.optionals (!withClassicalFunctionCompiler) [ ] ++ lib.optionals (!withClassicalFunctionCompiler) [
"TestPhaseOracle" "TestPhaseOracle"
] ++ lib.optionals stdenv.isAarch64 [
"test_circuit_init" # failed on aarch64, https://gist.github.com/r-rmcgibbo/c2e173d43ced4f6954811004f6b5b842
] ]
# Disabling slow tests for build constraints # Disabling slow tests for build constraints
++ [ ++ [
@ -155,8 +162,8 @@ buildPythonPackage rec {
pushd $PACKAGEDIR pushd $PACKAGEDIR
''; '';
postCheck = '' postCheck = ''
rm -rf test rm -r test
rm -rf examples rm -r examples
popd popd
''; '';