Skip to content

Commit 050c60a

Browse files
committed
python313Packages.qcengine: refactor
1 parent 31495cd commit 050c60a

File tree

1 file changed

+25
-8
lines changed

1 file changed

+25
-8
lines changed

pkgs/development/python-modules/qcengine/default.nix

Lines changed: 25 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,38 +2,55 @@
22
lib,
33
buildPythonPackage,
44
fetchPypi,
5+
ipykernel,
6+
msgpack,
7+
networkx,
8+
nglview,
9+
numpy,
510
psutil,
611
py-cpuinfo,
712
pydantic,
813
pytestCheckHook,
9-
pythonOlder,
1014
pyyaml,
1115
qcelemental,
12-
msgpack,
16+
scipy,
17+
setuptools,
1318
}:
1419

1520
buildPythonPackage rec {
1621
pname = "qcengine";
1722
version = "0.32.0";
18-
format = "setuptools";
19-
20-
disabled = pythonOlder "3.7";
23+
pyproject = true;
2124

2225
src = fetchPypi {
2326
inherit pname version;
2427
hash = "sha256-HvvWak7a2djF6wDJaHsBltaG1dTGbKH7wjsngO+fh2U=";
2528
};
2629

27-
propagatedBuildInputs = [
30+
build-system = [ setuptools ];
31+
32+
dependencies = [
33+
msgpack
34+
numpy
2835
psutil
2936
py-cpuinfo
3037
pydantic
3138
pyyaml
3239
qcelemental
33-
msgpack
3440
];
3541

36-
nativeCheckInputs = [ pytestCheckHook ];
42+
optional-dependencies = {
43+
align = [
44+
networkx
45+
scipy
46+
];
47+
viz = [
48+
ipykernel
49+
nglview
50+
];
51+
};
52+
53+
nativeCheckInputs = [ pytestCheckHook ] ++ lib.flatten (builtins.attrValues optional-dependencies);
3754

3855
pythonImportsCheck = [ "qcengine" ];
3956

0 commit comments

Comments
 (0)