2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, pythonOlder
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
# Python Inputs
|
|
|
|
, qiskit-aer
|
|
|
|
, qiskit-aqua
|
|
|
|
, qiskit-ibmq-provider
|
|
|
|
, qiskit-ignis
|
|
|
|
, qiskit-terra
|
|
|
|
# Check Inputs
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "qiskit";
|
|
|
|
# NOTE: This version denotes a specific set of subpackages. See https://qiskit.org/documentation/release_notes.html#version-history
|
2021-06-04 09:07:49 +00:00
|
|
|
version = "0.26.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-12-03 08:41:04 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2020-12-03 08:41:04 +00:00
|
|
|
owner = "qiskit";
|
2020-04-24 23:36:52 +00:00
|
|
|
repo = "qiskit";
|
|
|
|
rev = version;
|
2021-06-04 09:07:49 +00:00
|
|
|
hash = "sha256-QYWKKS7e/uCt5puWV4jA9Emp7M4Cyv2RUCxilbChWhw=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
qiskit-aer
|
|
|
|
qiskit-aqua
|
|
|
|
qiskit-ibmq-provider
|
|
|
|
qiskit-ignis
|
|
|
|
qiskit-terra
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [ pytestCheckHook ];
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"qiskit"
|
|
|
|
"qiskit.aqua"
|
|
|
|
"qiskit.circuit"
|
|
|
|
"qiskit.ignis"
|
|
|
|
"qiskit.providers.aer"
|
2020-12-03 08:41:04 +00:00
|
|
|
"qiskit.providers.ibmq"
|
2020-09-25 04:45:31 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Software for developing quantum computing programs";
|
|
|
|
homepage = "https://qiskit.org";
|
|
|
|
downloadPage = "https://github.com/QISKit/qiskit/releases";
|
2020-09-25 04:45:31 +00:00
|
|
|
changelog = "https://qiskit.org/documentation/release_notes.html";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ drewrisinger pandaman ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|