nixpkgs/pkgs/development/python-modules/qiskit/default.nix
2020-08-25 16:13:41 -07:00

57 lines
1.3 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.20.0";
disabled = pythonOlder "3.5";
src = fetchFromGitHub {
owner = "Qiskit";
repo = "qiskit";
rev = version;
sha256 = "1r23pjnql49gczf4k4m6ir5rr95gqdxjrks60p8a93d243mxx3c9";
};
propagatedBuildInputs = [
qiskit-aer
qiskit-aqua
qiskit-ibmq-provider
qiskit-ignis
qiskit-terra
];
checkInputs = [ pytestCheckHook ];
dontUseSetuptoolsCheck = true;
pythonImportsCheck = [
"qiskit"
"qiskit.aqua"
"qiskit.circuit"
"qiskit.ignis"
"qiskit.providers.aer"
];
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 ];
};
}