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
|
2020-05-11 22:48:37 +01:00
|
|
|
version = "0.19.1";
|
2018-05-12 07:49:14 +01:00
|
|
|
|
2020-01-21 19:41:28 +00:00
|
|
|
disabled = pythonOlder "3.5";
|
2018-05-12 07:49:14 +01:00
|
|
|
|
2020-01-21 19:41:28 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Qiskit";
|
|
|
|
repo = "qiskit";
|
|
|
|
rev = version;
|
2020-05-11 22:48:37 +01:00
|
|
|
sha256 = "0p1sahgf6qgbkvxb067mnyj6ya8nv7y57yyiiaadhjw242sjkjy5";
|
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 ];
|
|
|
|
dontUseSetuptoolsCheck = true;
|
|
|
|
# following doesn't work b/c they are distributed across different nix sitePackages dirs. Tested with pytest though.
|
|
|
|
# pythonImportsCheck = [ "qiskit" "qiskit.terra" "qiskit.ignis" "qiskit.aer" "qiskit.aqua" ];
|
2018-05-12 07:49:14 +01:00
|
|
|
|
|
|
|
meta = {
|
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";
|
|
|
|
license = lib.licenses.asl20;
|
|
|
|
maintainers = with lib.maintainers; [ drewrisinger pandaman ];
|
2018-05-12 07:49:14 +01:00
|
|
|
};
|
|
|
|
}
|