python3Packages.qiskit-terra: 0.14.2 -> 0.15.1

This commit is contained in:
Drew Risinger 2020-08-10 18:37:07 -04:00 committed by Jon
parent 5c60872dfb
commit a9987f8053

View file

@ -8,12 +8,11 @@
, fastjsonschema , fastjsonschema
, jsonschema , jsonschema
, numpy , numpy
, marshmallow
, marshmallow-polyfield
, networkx , networkx
, ply , ply
, psutil , psutil
, python-constraint , python-constraint
, python-dateutil
, retworkx , retworkx
, scipy , scipy
, sympy , sympy
@ -36,7 +35,7 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "qiskit-terra"; pname = "qiskit-terra";
version = "0.14.2"; version = "0.15.1";
disabled = pythonOlder "3.5"; disabled = pythonOlder "3.5";
@ -44,7 +43,7 @@ buildPythonPackage rec {
owner = "Qiskit"; owner = "Qiskit";
repo = pname; repo = pname;
rev = version; rev = version;
sha256 = "0p5wapjvy81pnks100xbb23kbs2wyys9ykyc8z4968wl487lq4g5"; sha256 = "1p7y36gj3675dmp05nwi0m9nc7h0bwyimir3ncf9wbkx3crrh99c";
}; };
nativeBuildInputs = [ cython ]; nativeBuildInputs = [ cython ];
@ -54,13 +53,12 @@ buildPythonPackage rec {
fastjsonschema fastjsonschema
jsonschema jsonschema
numpy numpy
marshmallow
marshmallow-polyfield
matplotlib matplotlib
networkx networkx
ply ply
psutil psutil
python-constraint python-constraint
python-dateutil
retworkx retworkx
scipy scipy
sympy sympy
@ -74,10 +72,6 @@ buildPythonPackage rec {
seaborn seaborn
]; ];
postPatch = ''
# Fix relative imports in tests
touch test/python/dagcircuit/__init__.py
'';
# *** Tests *** # *** Tests ***
checkInputs = [ checkInputs = [
@ -94,9 +88,6 @@ buildPythonPackage rec {
"qiskit.transpiler.passes.routing.cython.stochastic_swap.swap_trial" "qiskit.transpiler.passes.routing.cython.stochastic_swap.swap_trial"
]; ];
disabledTests = [
"test_random_clifford_valid" # random test, fails at least once when testing locally.
];
pytestFlagsArray = [ pytestFlagsArray = [
"--ignore=test/randomized/test_transpiler_equivalence.py" # collection requires qiskit-aer, which would cause circular dependency "--ignore=test/randomized/test_transpiler_equivalence.py" # collection requires qiskit-aer, which would cause circular dependency
]; ];
@ -106,9 +97,9 @@ buildPythonPackage rec {
preCheck = '' preCheck = ''
export PACKAGEDIR=$out/${python.sitePackages} export PACKAGEDIR=$out/${python.sitePackages}
echo "Moving Qiskit test files to package directory" echo "Moving Qiskit test files to package directory"
cp -r $TMP/source/test $PACKAGEDIR cp -r $TMP/$sourceRoot/test $PACKAGEDIR
cp -r $TMP/source/examples $PACKAGEDIR cp -r $TMP/$sourceRoot/examples $PACKAGEDIR
cp -r $TMP/source/qiskit/schemas/examples $PACKAGEDIR/qiskit/schemas/ cp -r $TMP/$sourceRoot/qiskit/schemas/examples $PACKAGEDIR/qiskit/schemas/
# run pytest from Nix's $out path # run pytest from Nix's $out path
pushd $PACKAGEDIR pushd $PACKAGEDIR
@ -127,6 +118,7 @@ buildPythonPackage rec {
''; '';
homepage = "https://qiskit.org/terra"; homepage = "https://qiskit.org/terra";
downloadPage = "https://github.com/QISKit/qiskit-terra/releases"; downloadPage = "https://github.com/QISKit/qiskit-terra/releases";
changelog = "https://qiskit.org/documentation/release_notes.html";
license = licenses.asl20; license = licenses.asl20;
maintainers = with maintainers; [ drewrisinger ]; maintainers = with maintainers; [ drewrisinger ];
}; };