2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2020-12-07 07:45:13 +00:00
|
|
|
, configparser
|
|
|
|
, pyparsing
|
2020-04-24 23:36:52 +00:00
|
|
|
, pytest
|
|
|
|
, future
|
2020-12-07 07:45:13 +00:00
|
|
|
, openpyxl
|
|
|
|
, wrapt
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2020-12-07 07:45:13 +00:00
|
|
|
version = "0.3.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "atsim.potentials";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-12-07 07:45:13 +00:00
|
|
|
sha256 = "70082fc40b0ab7565a671c2d764fe3db08bc6ce45da44e1c1e8b77a65d1f7a23";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ pytest ];
|
2020-12-07 07:45:13 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
configparser
|
|
|
|
future
|
|
|
|
openpyxl
|
|
|
|
pyparsing
|
|
|
|
wrapt
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace "wrapt==1.11.2" "wrapt~=1.11"
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# tests are not included with release
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
py.test
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-12-07 07:45:13 +00:00
|
|
|
homepage = "https://github.com/mjdrushton/atsim-potentials";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Provides tools for working with pair and embedded atom method potential models including tabulation routines for DL_POLY and LAMMPS";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
2020-12-07 07:45:13 +00:00
|
|
|
broken = true; # missing cexprtk package
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|