depot/third_party/nixpkgs/pkgs/development/python-modules/i-pi/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

53 lines
957 B
Nix

{
buildPythonPackage,
lib,
fetchFromGitHub,
gfortran,
makeWrapper,
numpy,
pytest,
mock,
pytest-mock,
}:
buildPythonPackage rec {
pname = "i-pi";
version = "2.6.1";
format = "setuptools";
src = fetchFromGitHub {
owner = "i-pi";
repo = "i-pi";
rev = "refs/tags/v${version}";
sha256 = "sha256-c1bs8ZI/dfDwKx5Df8ndtsDxESQrdbMkvrjfI6b9JTg=";
};
nativeBuildInputs = [
gfortran
makeWrapper
];
propagatedBuildInputs = [ numpy ];
nativeCheckInputs = [
pytest
mock
pytest-mock
];
postFixup = ''
wrapProgram $out/bin/i-pi \
--set IPI_ROOT $out
'';
meta = with lib; {
description = "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 ];
};
}