depot/third_party/nixpkgs/pkgs/development/python-modules/qiskit-nature/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

80 lines
1.5 KiB
Nix

{
lib,
pythonOlder,
buildPythonPackage,
fetchFromGitHub,
# build-system
setuptools,
# 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.7.2";
pyproject = true;
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "Qiskit";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-SVzg3McB885RMyAp90Kr6/iVKw3Su9ucTob2jBckBo0=";
};
nativeBuildInputs = [ setuptools ];
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 ];
};
}