uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
105
pkgs/development/python-modules/qiskit-ibmq-provider/default.nix
Normal file
105
pkgs/development/python-modules/qiskit-ibmq-provider/default.nix
Normal file
|
|
@ -0,0 +1,105 @@
|
|||
{ 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.19.1";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Qiskit";
|
||||
repo = pname;
|
||||
rev = "refs/tags/${version}";
|
||||
sha256 = "sha256-VdGdaOxCwD2Qa0JCCDVZJtcjhmTssS/KgpcjoaPXYB8=";
|
||||
};
|
||||
|
||||
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
|
||||
checkInputs = [
|
||||
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 = with maintainers; [ drewrisinger ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue