Commit 0e2bf29c authored by kilianar's avatar kilianar
Browse files

python3Packages.qiskit-ibmq-provider: drop

The package has been deprecated upstream.
parent 01ee8811
Loading
Loading
Loading
Loading
+0 −109
Original line number Diff line number Diff line
{
  lib,
  pythonOlder,
  buildPythonPackage,
  fetchFromGitHub,
  arrow,
  nest-asyncio,
  qiskit-terra,
  requests,
  requests-ntlm,
  websocket-client,
  # Visualization inputs
  withVisualization ? true,
  ipython,
  ipyvuetify,
  ipywidgets,
  matplotlib,
  plotly,
  pyperclip,
  seaborn,
  # check inputs
  pytestCheckHook,
  nbconvert,
  nbformat,
  pproxy,
  qiskit-aer,
  websockets,
  vcrpy,
}:

let
  visualizationPackages = [
    ipython
    ipyvuetify
    ipywidgets
    matplotlib
    plotly
    pyperclip
    seaborn
  ];
in
buildPythonPackage rec {
  pname = "qiskit-ibmq-provider";
  version = "0.20.2";
  format = "setuptools";

  disabled = pythonOlder "3.6";

  src = fetchFromGitHub {
    owner = "Qiskit";
    repo = pname;
    rev = "refs/tags/${version}";
    hash = "sha256-7dIspeJpukLDfICoBPPZZWdzkVumtvh+NRxvtmnvWH0=";
  };

  propagatedBuildInputs = [
    arrow
    nest-asyncio
    qiskit-terra
    requests
    requests-ntlm
    websocket-client
    websockets
  ]
  ++ lib.optionals withVisualization visualizationPackages;

  postPatch = ''
    substituteInPlace setup.py --replace "websocket-client>=1.0.1" "websocket-client"
  '';

  # Most tests require credentials to run on IBMQ
  nativeCheckInputs = [
    pytestCheckHook
    nbconvert
    nbformat
    pproxy
    qiskit-aer
    vcrpy
  ]
  ++ lib.optionals (!withVisualization) visualizationPackages;

  pythonImportsCheck = [ "qiskit.providers.ibmq" ];
  disabledTests = [
    "test_coder_operators" # fails for some reason on nixos-21.05+
    # These disabled tests require internet connection, aren't skipped elsewhere
    "test_old_api_url"
    "test_non_auth_url"
    "test_non_auth_url_with_hub"
    "test_coder_optimizers" # TODO: reenable when package scikit-quant is packaged, either in NUR or nixpkgs

    # slow tests
    "test_websocket_retry_failure"
    "test_invalid_url"
  ];

  # Skip tests that rely on internet access (mostly to IBM Quantum Experience cloud).
  # Options defined in qiskit.terra.test.testing_options.py::get_test_options
  preCheck = ''
    export QISKIT_TESTS=skip_online
  '';

  meta = with lib; {
    description = "Qiskit provider for accessing the quantum devices and simulators at IBMQ";
    homepage = "https://github.com/Qiskit/qiskit-ibmq-provider";
    changelog = "https://qiskit.org/documentation/release_notes.html";
    license = licenses.asl20;
    maintainers = [ ];
  };
}
+1 −0
Original line number Diff line number Diff line
@@ -396,6 +396,7 @@ mapAliases {
  PyVirtualDisplay = throw "'PyVirtualDisplay' has been renamed to/replaced by 'pyvirtualdisplay'"; # Converted to throw 2025-10-29
  pyvoro = throw "pyvoro has been removed because it is unmaintained upstream and has been marked as broken since 2023."; # Added 2025-10-11
  qds_sdk = throw "'qds_sdk' has been renamed to/replaced by 'qds-sdk'"; # Converted to throw 2025-10-29
  qiskit-ibmq-provider = throw "qiskit-imbq-provider has been removed, since it was deprecated upstream"; # added 2025-09-13
  qiskit-ignis = throw "qiskit-ignis has been removed, since it was deprecated upstream"; # added 2025-09-13
  Quandl = throw "'Quandl' has been renamed to/replaced by 'quandl'"; # Converted to throw 2025-10-29
  querystring_parser = throw "'querystring_parser' has been renamed to/replaced by 'querystring-parser'"; # Converted to throw 2025-10-29
+0 −2
Original line number Diff line number Diff line
@@ -15803,8 +15803,6 @@ self: super: with self; {
  qiskit-finance = callPackage ../development/python-modules/qiskit-finance { };
  qiskit-ibmq-provider = callPackage ../development/python-modules/qiskit-ibmq-provider { };
  qiskit-machine-learning = callPackage ../development/python-modules/qiskit-machine-learning { };
  qiskit-nature = callPackage ../development/python-modules/qiskit-nature { };