2020-01-21 19:41:28 +00:00
|
|
|
{ lib
|
|
|
|
, pythonOlder
|
2018-05-12 07:49:14 +01:00
|
|
|
, buildPythonPackage
|
2020-01-21 19:41:28 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
# Python Inputs
|
|
|
|
, qiskit-aer
|
|
|
|
, qiskit-aqua
|
|
|
|
, qiskit-ibmq-provider
|
|
|
|
, qiskit-ignis
|
|
|
|
, qiskit-terra
|
|
|
|
# Check Inputs
|
|
|
|
, pytestCheckHook
|
2018-05-12 07:49:14 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "qiskit";
|
2020-01-21 19:41:28 +00:00
|
|
|
# NOTE: This version denotes a specific set of subpackages. See https://qiskit.org/documentation/release_notes.html#version-history
|
2021-02-25 16:43:52 +00:00
|
|
|
version = "0.24.0";
|
2018-05-12 07:49:14 +01:00
|
|
|
|
2020-10-08 06:00:15 +01:00
|
|
|
disabled = pythonOlder "3.6";
|
2018-05-12 07:49:14 +01:00
|
|
|
|
2020-01-21 19:41:28 +00:00
|
|
|
src = fetchFromGitHub {
|
2020-10-08 06:00:15 +01:00
|
|
|
owner = "qiskit";
|
2020-01-21 19:41:28 +00:00
|
|
|
repo = "qiskit";
|
|
|
|
rev = version;
|
2021-02-25 16:43:52 +00:00
|
|
|
sha256 = "1b78q75bi666v0yj33bkjlc40d2172dsq5yp1s2kkisjfa8qmh7h";
|
2018-05-12 07:49:14 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2020-01-21 19:41:28 +00:00
|
|
|
qiskit-aer
|
|
|
|
qiskit-aqua
|
|
|
|
qiskit-ibmq-provider
|
|
|
|
qiskit-ignis
|
|
|
|
qiskit-terra
|
2018-05-12 07:49:14 +01:00
|
|
|
];
|
|
|
|
|
2020-01-21 19:41:28 +00:00
|
|
|
checkInputs = [ pytestCheckHook ];
|
2018-05-12 07:49:14 +01:00
|
|
|
|
2020-08-10 23:43:13 +01:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"qiskit"
|
|
|
|
"qiskit.aqua"
|
|
|
|
"qiskit.circuit"
|
|
|
|
"qiskit.ignis"
|
|
|
|
"qiskit.providers.aer"
|
2020-10-08 06:00:15 +01:00
|
|
|
"qiskit.providers.ibmq"
|
2020-08-10 23:43:13 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2020-01-21 19:41:28 +00:00
|
|
|
description = "Software for developing quantum computing programs";
|
|
|
|
homepage = "https://qiskit.org";
|
|
|
|
downloadPage = "https://github.com/QISKit/qiskit/releases";
|
2020-08-10 23:43:13 +01:00
|
|
|
changelog = "https://qiskit.org/documentation/release_notes.html";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ drewrisinger pandaman ];
|
2018-05-12 07:49:14 +01:00
|
|
|
};
|
|
|
|
}
|