2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-10-11 00:44:17 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2020-11-29 17:46:36 +00:00
|
|
|
, configparser
|
|
|
|
, pyparsing
|
2018-10-11 00:44:17 +01:00
|
|
|
, pytest
|
|
|
|
, future
|
2020-11-29 17:46:36 +00:00
|
|
|
, openpyxl
|
|
|
|
, wrapt
|
2018-10-11 00:44:17 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2021-06-18 22:47:08 +01:00
|
|
|
version = "0.4.0";
|
2018-10-11 00:44:17 +01:00
|
|
|
pname = "atsim.potentials";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-06-18 22:47:08 +01:00
|
|
|
sha256 = "0c3e4e2323e969880f17a9924642e0991be5761f50b254bcbadd046db3be6390";
|
2018-10-11 00:44:17 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ pytest ];
|
2020-11-29 17:46:36 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
configparser
|
|
|
|
future
|
|
|
|
openpyxl
|
|
|
|
pyparsing
|
|
|
|
wrapt
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace "wrapt==1.11.2" "wrapt~=1.11"
|
|
|
|
'';
|
2018-10-11 00:44:17 +01:00
|
|
|
|
|
|
|
# tests are not included with release
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
py.test
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-11-29 17:47:04 +00:00
|
|
|
homepage = "https://github.com/mjdrushton/atsim-potentials";
|
2018-10-11 00:44:17 +01: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-11-29 17:46:36 +00:00
|
|
|
broken = true; # missing cexprtk package
|
2018-10-11 00:44:17 +01:00
|
|
|
};
|
|
|
|
}
|