python313Packages.qcengine: refactor

This commit is contained in:
Fabian Affolter
2025-05-13 16:23:17 +02:00
parent 31495cd4a3
commit 050c60a878

View File

@@ -2,38 +2,55 @@
lib,
buildPythonPackage,
fetchPypi,
ipykernel,
msgpack,
networkx,
nglview,
numpy,
psutil,
py-cpuinfo,
pydantic,
pytestCheckHook,
pythonOlder,
pyyaml,
qcelemental,
msgpack,
scipy,
setuptools,
}:
buildPythonPackage rec {
pname = "qcengine";
version = "0.32.0";
format = "setuptools";
disabled = pythonOlder "3.7";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-HvvWak7a2djF6wDJaHsBltaG1dTGbKH7wjsngO+fh2U=";
};
propagatedBuildInputs = [
build-system = [ setuptools ];
dependencies = [
msgpack
numpy
psutil
py-cpuinfo
pydantic
pyyaml
qcelemental
msgpack
];
nativeCheckInputs = [ pytestCheckHook ];
optional-dependencies = {
align = [
networkx
scipy
];
viz = [
ipykernel
nglview
];
};
nativeCheckInputs = [ pytestCheckHook ] ++ lib.flatten (builtins.attrValues optional-dependencies);
pythonImportsCheck = [ "qcengine" ];