2021-06-04 09:07:49 +00:00
|
|
|
{ buildPythonPackage, lib, fetchFromGitHub, gfortran
|
|
|
|
, makeWrapper, numpy, pytest, mock, pytest-mock
|
|
|
|
} :
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2022-02-10 20:34:41 +00:00
|
|
|
pname = "i-pi";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "2.6.1";
|
|
|
|
format = "setuptools";
|
2021-06-04 09:07:49 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "i-pi";
|
|
|
|
repo = "i-pi";
|
2024-01-02 11:29:13 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
sha256 = "sha256-c1bs8ZI/dfDwKx5Df8ndtsDxESQrdbMkvrjfI6b9JTg=";
|
2021-06-04 09:07:49 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
gfortran
|
|
|
|
makeWrapper
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ numpy ];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-06-04 09:07:49 +00:00
|
|
|
pytest
|
|
|
|
mock
|
|
|
|
pytest-mock
|
|
|
|
];
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
wrapProgram $out/bin/i-pi \
|
|
|
|
--set IPI_ROOT $out
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A universal force engine for ab initio and force field driven (path integral) molecular dynamics";
|
|
|
|
license = with licenses; [ gpl3Only mit ];
|
|
|
|
homepage = "http://ipi-code.org/";
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.sheepforce ];
|
|
|
|
};
|
|
|
|
}
|