2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, fetchPypi
|
|
|
|
, buildPythonPackage
|
|
|
|
, pymatgen
|
|
|
|
, marshmallow
|
|
|
|
, pyyaml
|
|
|
|
, pygmo
|
|
|
|
, pandas
|
|
|
|
, scipy
|
|
|
|
, numpy
|
2021-05-20 23:08:51 +00:00
|
|
|
, scikit-learn
|
2020-04-24 23:36:52 +00:00
|
|
|
, lammps-cython
|
|
|
|
, pymatgen-lammps
|
|
|
|
, pytestrunner
|
|
|
|
, isPy3k
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "dftfit";
|
|
|
|
version = "0.5.1";
|
|
|
|
disabled = (!isPy3k);
|
|
|
|
|
|
|
|
src = fetchPypi {
|
2021-02-17 17:02:09 +00:00
|
|
|
inherit pname version;
|
|
|
|
sha256 = "4dcbde48948835dcf2d49d6628c9df5747a8ec505d517e374b8d6c7fe95892df";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ pytestrunner ];
|
2021-02-17 17:02:09 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
pymatgen
|
|
|
|
marshmallow
|
|
|
|
pyyaml
|
|
|
|
pygmo
|
|
|
|
pandas
|
|
|
|
scipy
|
|
|
|
numpy
|
2021-05-20 23:08:51 +00:00
|
|
|
scikit-learn
|
2021-02-17 17:02:09 +00:00
|
|
|
lammps-cython
|
|
|
|
pymatgen-lammps
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# tests require git lfs download. and is quite large so skip tests
|
|
|
|
doCheck = false;
|
2021-02-17 17:02:09 +00:00
|
|
|
pythonImportsCheck = [ "dftfit" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Ab-Initio Molecular Dynamics Potential Development";
|
|
|
|
homepage = "https://gitlab.com/costrouc/dftfit";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ costrouc ];
|
|
|
|
};
|
|
|
|
}
|