depot/third_party/nixpkgs/pkgs/development/python-modules/qiskit-nature/default.nix
Default email 22017988c6 Project import generated by Copybara.
GitOrigin-RevId: c777cdf5c564015d5f63b09cc93bef4178b19b01
2022-04-27 11:35:20 +02:00

70 lines
1.3 KiB
Nix

{ lib
, pythonOlder
, buildPythonPackage
, fetchFromGitHub
# Python Inputs
, h5py
, numpy
, psutil
, qiskit-terra
, retworkx
, scikit-learn
, scipy
, withPyscf ? false
, pyscf
# Check Inputs
, pytestCheckHook
, ddt
, pylatexenc
, qiskit-aer
}:
buildPythonPackage rec {
pname = "qiskit-nature";
version = "0.3.2";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "Qiskit";
repo = pname;
rev = version;
sha256 = "sha256-BXUVRZ8X3OJiRexNXZsnvp+Yh8ARNYohYH49/IYFYM0=";
};
propagatedBuildInputs = [
h5py
numpy
psutil
qiskit-terra
retworkx
scikit-learn
scipy
] ++ lib.optional withPyscf pyscf;
checkInputs = [
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";
license = licenses.asl20;
maintainers = with maintainers; [ drewrisinger ];
};
}