Skip to content

Commit 70a3e84

Browse files
authored
Merge pull request #334758 from r-ryantm/auto-update/python312Packages.i-pi
python312Packages.i-pi: 2.6.1 -> 3.0
2 parents 0ab4d4a + 64f4dfa commit 70a3e84

File tree

1 file changed

+14
-7
lines changed

1 file changed

+14
-7
lines changed

pkgs/development/python-modules/i-pi/default.nix

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,36 +4,43 @@
44
fetchFromGitHub,
55
gfortran,
66
makeWrapper,
7+
setuptools,
78
numpy,
8-
pytest,
9+
distutils,
10+
pytestCheckHook,
911
mock,
1012
pytest-mock,
13+
pythonAtLeast,
1114
}:
1215

1316
buildPythonPackage rec {
1417
pname = "i-pi";
15-
version = "2.6.1";
16-
format = "setuptools";
18+
version = "3.0";
19+
pyproject = true;
1720

1821
src = fetchFromGitHub {
1922
owner = "i-pi";
2023
repo = "i-pi";
2124
rev = "refs/tags/v${version}";
22-
sha256 = "sha256-c1bs8ZI/dfDwKx5Df8ndtsDxESQrdbMkvrjfI6b9JTg=";
25+
hash = "sha256-SJ0qTwwdIOR1nXs9MV6O1oxJPR6/6H86wscDy/sLc/g=";
2326
};
2427

28+
build-system = [ setuptools ];
29+
2530
nativeBuildInputs = [
2631
gfortran
2732
makeWrapper
2833
];
2934

30-
propagatedBuildInputs = [ numpy ];
35+
dependencies = [ numpy ];
3136

3237
nativeCheckInputs = [
33-
pytest
38+
pytestCheckHook
3439
mock
3540
pytest-mock
36-
];
41+
] ++ lib.optional (pythonAtLeast "3.12") distutils;
42+
43+
pytestFlagsArray = [ "ipi_tests/unit_tests" ];
3744

3845
postFixup = ''
3946
wrapProgram $out/bin/i-pi \

0 commit comments

Comments
 (0)