2021-12-06 16:07:01 +00:00
|
|
|
{ lib
|
|
|
|
, pythonOlder
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
# Python Inputs
|
|
|
|
, h5py
|
|
|
|
, numpy
|
|
|
|
, psutil
|
|
|
|
, qiskit-terra
|
|
|
|
, retworkx
|
|
|
|
, scikit-learn
|
|
|
|
, scipy
|
|
|
|
, withPyscf ? false
|
|
|
|
, pyscf
|
|
|
|
# Check Inputs
|
|
|
|
, pytestCheckHook
|
|
|
|
, ddt
|
|
|
|
, pylatexenc
|
2022-02-20 05:27:41 +00:00
|
|
|
, qiskit-aer
|
2021-12-06 16:07:01 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "qiskit-nature";
|
2023-01-20 10:41:00 +00:00
|
|
|
version = "0.5.2";
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2022-04-27 09:35:20 +00:00
|
|
|
owner = "Qiskit";
|
2021-12-06 16:07:01 +00:00
|
|
|
repo = pname;
|
2022-08-12 12:06:08 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-rUY5fnsWg2UisF0tGORvHot8laCs8eVAvuVKUOG5ibw=";
|
2021-12-06 16:07:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
h5py
|
|
|
|
numpy
|
|
|
|
psutil
|
|
|
|
qiskit-terra
|
|
|
|
retworkx
|
|
|
|
scikit-learn
|
|
|
|
scipy
|
|
|
|
] ++ lib.optional withPyscf pyscf;
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-12-06 16:07:01 +00:00
|
|
|
pytestCheckHook
|
|
|
|
ddt
|
|
|
|
pylatexenc
|
2022-02-20 05:27:41 +00:00
|
|
|
qiskit-aer
|
2021-12-06 16:07:01 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "qiskit_nature" ];
|
|
|
|
|
|
|
|
pytestFlagsArray = [
|
|
|
|
"--durations=10"
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
2022-04-27 09:35:20 +00:00
|
|
|
"test_two_qubit_reduction" # failure cause unclear
|
2021-12-06 16:07:01 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Software for developing quantum computing programs";
|
|
|
|
homepage = "https://qiskit.org";
|
2022-02-20 05:27:41 +00:00
|
|
|
downloadPage = "https://github.com/QISKit/qiskit-nature/releases";
|
2021-12-06 16:07:01 +00:00
|
|
|
changelog = "https://qiskit.org/documentation/release_notes.html";
|
2022-06-26 10:26:21 +00:00
|
|
|
sourceProvenance = with sourceTypes; [
|
|
|
|
fromSource
|
|
|
|
binaryNativeCode # drivers/gaussiand/gauopen/*.so
|
|
|
|
];
|
2021-12-06 16:07:01 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ drewrisinger ];
|
|
|
|
};
|
|
|
|
}
|