94427deb9d
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
74 lines
1.4 KiB
Nix
74 lines
1.4 KiB
Nix
{ lib
|
|
, pythonOlder
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
# Python Inputs
|
|
, h5py
|
|
, numpy
|
|
, psutil
|
|
, qiskit-terra
|
|
, rustworkx
|
|
, scikit-learn
|
|
, scipy
|
|
, withPyscf ? false
|
|
, pyscf
|
|
# Check Inputs
|
|
, pytestCheckHook
|
|
, ddt
|
|
, pylatexenc
|
|
, qiskit-aer
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "qiskit-nature";
|
|
version = "0.5.2";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Qiskit";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-rUY5fnsWg2UisF0tGORvHot8laCs8eVAvuVKUOG5ibw=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
h5py
|
|
numpy
|
|
psutil
|
|
qiskit-terra
|
|
rustworkx
|
|
scikit-learn
|
|
scipy
|
|
] ++ lib.optional withPyscf pyscf;
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
ddt
|
|
pylatexenc
|
|
qiskit-aer
|
|
];
|
|
|
|
pythonImportsCheck = [ "qiskit_nature" ];
|
|
|
|
pytestFlagsArray = [
|
|
"--durations=10"
|
|
];
|
|
|
|
disabledTests = [
|
|
"test_two_qubit_reduction" # failure cause unclear
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Software for developing quantum computing programs";
|
|
homepage = "https://qiskit.org";
|
|
downloadPage = "https://github.com/QISKit/qiskit-nature/releases";
|
|
changelog = "https://qiskit.org/documentation/release_notes.html";
|
|
sourceProvenance = with sourceTypes; [
|
|
fromSource
|
|
binaryNativeCode # drivers/gaussiand/gauopen/*.so
|
|
];
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ drewrisinger ];
|
|
};
|
|
}
|