aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/development/python-modules/qiskit-ibmq-provider/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/development/python-modules/qiskit-ibmq-provider/default.nix')
-rw-r--r--infra/libkookie/nixpkgs/pkgs/development/python-modules/qiskit-ibmq-provider/default.nix49
1 files changed, 25 insertions, 24 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/development/python-modules/qiskit-ibmq-provider/default.nix b/infra/libkookie/nixpkgs/pkgs/development/python-modules/qiskit-ibmq-provider/default.nix
index eaf10fd60829..7374d7ce017d 100644
--- a/infra/libkookie/nixpkgs/pkgs/development/python-modules/qiskit-ibmq-provider/default.nix
+++ b/infra/libkookie/nixpkgs/pkgs/development/python-modules/qiskit-ibmq-provider/default.nix
@@ -9,24 +9,36 @@
, requests_ntlm
, websockets
# Visualization inputs
-, ipykernel
+, withVisualization ? false
+, ipython
, ipyvuetify
, ipywidgets
, matplotlib
-, nbconvert
-, nbformat
, plotly
, pyperclip
, seaborn
# check inputs
, pytestCheckHook
+, nbconvert
+, nbformat
, pproxy
, vcrpy
}:
+let
+ visualizationPackages = [
+ ipython
+ ipyvuetify
+ ipywidgets
+ matplotlib
+ plotly
+ pyperclip
+ seaborn
+ ];
+in
buildPythonPackage rec {
pname = "qiskit-ibmq-provider";
- version = "0.8.0";
+ version = "0.11.1";
disabled = pythonOlder "3.6";
@@ -34,7 +46,7 @@ buildPythonPackage rec {
owner = "Qiskit";
repo = pname;
rev = version;
- sha256 = "0rrpwr4a82j69j5ibl2g0nw8wbpg201cfz6f234k2v6pj500x9nl";
+ sha256 = "0b5mnq8f5844idnsmp84lpkvlpszfwwi998yvggcgaayw1dbk53h";
};
propagatedBuildInputs = [
@@ -44,31 +56,16 @@ buildPythonPackage rec {
requests
requests_ntlm
websockets
- # Visualization/Jupyter inputs
- ipykernel
- ipyvuetify
- ipywidgets
- matplotlib
- nbconvert
- nbformat
- plotly
- pyperclip
- seaborn
- ];
-
- # websockets seems to be pinned b/c in v8+ it drops py3.5 support. Not an issue here (usually py3.7+, and disabled for older py3.6)
- postPatch = ''
- substituteInPlace requirements.txt --replace "websockets>=7,<8" "websockets"
- substituteInPlace setup.py --replace "websockets>=7,<8" "websockets"
- '';
+ ] ++ lib.optionals withVisualization visualizationPackages;
# Most tests require credentials to run on IBMQ
checkInputs = [
pytestCheckHook
+ nbconvert
+ nbformat
pproxy
vcrpy
- ];
- dontUseSetuptoolsCheck = true;
+ ] ++ lib.optionals (!withVisualization) visualizationPackages;
pythonImportsCheck = [ "qiskit.providers.ibmq" ];
# These disabled tests require internet connection, aren't skipped elsewhere
@@ -76,6 +73,10 @@ buildPythonPackage rec {
"test_old_api_url"
"test_non_auth_url"
"test_non_auth_url_with_hub"
+
+ # slow tests
+ "test_websocket_retry_failure"
+ "test_invalid_url"
];
# Skip tests that rely on internet access (mostly to IBM Quantum Experience cloud).