Skip to content

Commit

Permalink
python3Packages.qiskit-terra: 0.14.2 -> 0.15.1
Browse files Browse the repository at this point in the history
  • Loading branch information
drewrisinger authored and Jon committed Aug 25, 2020
1 parent 5c60872 commit a9987f8
Showing 1 changed file with 8 additions and 16 deletions.
24 changes: 8 additions & 16 deletions pkgs/development/python-modules/qiskit-terra/default.nix
Expand Up @@ -8,12 +8,11 @@
, fastjsonschema
, jsonschema
, numpy
, marshmallow
, marshmallow-polyfield
, networkx
, ply
, psutil
, python-constraint
, python-dateutil
, retworkx
, scipy
, sympy
Expand All @@ -36,15 +35,15 @@

buildPythonPackage rec {
pname = "qiskit-terra";
version = "0.14.2";
version = "0.15.1";

disabled = pythonOlder "3.5";

src = fetchFromGitHub {
owner = "Qiskit";
repo = pname;
rev = version;
sha256 = "0p5wapjvy81pnks100xbb23kbs2wyys9ykyc8z4968wl487lq4g5";
sha256 = "1p7y36gj3675dmp05nwi0m9nc7h0bwyimir3ncf9wbkx3crrh99c";
};

nativeBuildInputs = [ cython ];
Expand All @@ -54,13 +53,12 @@ buildPythonPackage rec {
fastjsonschema
jsonschema
numpy
marshmallow
marshmallow-polyfield
matplotlib
networkx
ply
psutil
python-constraint
python-dateutil
retworkx
scipy
sympy
Expand All @@ -74,10 +72,6 @@ buildPythonPackage rec {
seaborn
];

postPatch = ''
# Fix relative imports in tests
touch test/python/dagcircuit/__init__.py
'';

# *** Tests ***
checkInputs = [
Expand All @@ -94,9 +88,6 @@ buildPythonPackage rec {
"qiskit.transpiler.passes.routing.cython.stochastic_swap.swap_trial"
];

disabledTests = [
"test_random_clifford_valid" # random test, fails at least once when testing locally.
];
pytestFlagsArray = [
"--ignore=test/randomized/test_transpiler_equivalence.py" # collection requires qiskit-aer, which would cause circular dependency
];
Expand All @@ -106,9 +97,9 @@ buildPythonPackage rec {
preCheck = ''
export PACKAGEDIR=$out/${python.sitePackages}
echo "Moving Qiskit test files to package directory"
cp -r $TMP/source/test $PACKAGEDIR
cp -r $TMP/source/examples $PACKAGEDIR
cp -r $TMP/source/qiskit/schemas/examples $PACKAGEDIR/qiskit/schemas/
cp -r $TMP/$sourceRoot/test $PACKAGEDIR
cp -r $TMP/$sourceRoot/examples $PACKAGEDIR
cp -r $TMP/$sourceRoot/qiskit/schemas/examples $PACKAGEDIR/qiskit/schemas/
# run pytest from Nix's $out path
pushd $PACKAGEDIR
Expand All @@ -127,6 +118,7 @@ buildPythonPackage rec {
'';
homepage = "https://qiskit.org/terra";
downloadPage = "https://github.com/QISKit/qiskit-terra/releases";
changelog = "https://qiskit.org/documentation/release_notes.html";
license = licenses.asl20;
maintainers = with maintainers; [ drewrisinger ];
};
Expand Down

0 comments on commit a9987f8

Please sign in to comment.