Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.3 kB · 73 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374{ buildPythonPackage, lib, fetchFromGitHub, gfortran, makeWrapper, setuptools, setuptools-scm, numpy, scipy, distutils, pytestCheckHook, mock, pytest-mock, pythonAtLeast,}:
buildPythonPackage rec { pname = "i-pi"; version = "3.1.5.1"; pyproject = true;
src = fetchFromGitHub { owner = "i-pi"; repo = "i-pi"; tag = "v${version}"; hash = "sha256-az1rQlXwYUyPA4wP5wxBZtmJhQlvHxhRZF2O141i76o="; };
build-system = [ setuptools setuptools-scm ];
nativeBuildInputs = [ gfortran makeWrapper ];
dependencies = [ numpy scipy ];
nativeCheckInputs = [ pytestCheckHook mock pytest-mock ] ++ lib.optional (pythonAtLeast "3.12") distutils;
enabledTestPaths = [ "ipi_tests/unit_tests" ]; disabledTests = [ "test_driver_base" "test_driver_forcebuild" ];
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 = "https://ipi-code.org/"; platforms = platforms.linux; maintainers = [ maintainers.sheepforce ]; };}