mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 02:06:46 +01:00
bb6aec6f49
Add optional subpackages as arguments. Most of these are not in nixpkgs, but can be found in https://github.com/drewrisinger/nur-packages/.
57 lines
1.2 KiB
Nix
57 lines
1.2 KiB
Nix
{ 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
|
|
version = "0.26.2";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "qiskit";
|
|
repo = "qiskit";
|
|
rev = version;
|
|
hash = "sha256-QYWKKS7e/uCt5puWV4jA9Emp7M4Cyv2RUCxilbChWhw=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
qiskit-aer
|
|
qiskit-aqua
|
|
qiskit-ibmq-provider
|
|
qiskit-ignis
|
|
qiskit-terra
|
|
];
|
|
|
|
checkInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [
|
|
"qiskit"
|
|
"qiskit.aqua"
|
|
"qiskit.circuit"
|
|
"qiskit.ignis"
|
|
"qiskit.providers.aer"
|
|
"qiskit.providers.ibmq"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Software for developing quantum computing programs";
|
|
homepage = "https://qiskit.org";
|
|
downloadPage = "https://github.com/QISKit/qiskit/releases";
|
|
changelog = "https://qiskit.org/documentation/release_notes.html";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ drewrisinger pandaman ];
|
|
};
|
|
}
|