2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
2022-08-21 13:32:41 +00:00
|
|
|
, fetchFromGitHub
|
2020-12-07 07:45:13 +00:00
|
|
|
, configparser
|
|
|
|
, pyparsing
|
2022-08-21 13:32:41 +00:00
|
|
|
, pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
, future
|
2020-12-07 07:45:13 +00:00
|
|
|
, openpyxl
|
|
|
|
, wrapt
|
2022-08-21 13:32:41 +00:00
|
|
|
, scipy
|
|
|
|
, cexprtk
|
|
|
|
, deepdiff
|
|
|
|
, sympy
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2021-06-28 23:13:55 +00:00
|
|
|
version = "0.4.0";
|
2022-08-21 13:32:41 +00:00
|
|
|
pname = "atsim-potentials";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-08-21 13:32:41 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mjdrushton";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "sha256-MwjRVd54qa8uJOi9yRXU+Vrve50ndftJUl+TFZKVzQM=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-08-21 13:32:41 +00:00
|
|
|
postPatch = ''
|
|
|
|
# Remove conflicting openpyxl dependency version check
|
|
|
|
sed -i '/openpyxl==2.6.4/d' setup.py
|
|
|
|
'';
|
|
|
|
|
2020-12-07 07:45:13 +00:00
|
|
|
propagatedBuildInputs = [
|
2022-08-21 13:32:41 +00:00
|
|
|
cexprtk
|
2020-12-07 07:45:13 +00:00
|
|
|
configparser
|
|
|
|
future
|
|
|
|
openpyxl
|
|
|
|
pyparsing
|
2022-08-21 13:32:41 +00:00
|
|
|
scipy
|
|
|
|
sympy
|
2020-12-07 07:45:13 +00:00
|
|
|
wrapt
|
|
|
|
];
|
|
|
|
|
2022-08-21 13:32:41 +00:00
|
|
|
checkInputs = [
|
|
|
|
deepdiff
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-08-21 13:32:41 +00:00
|
|
|
disabledTests = [
|
|
|
|
# Missing lammps executable
|
|
|
|
"eam_tabulate_example2TestCase"
|
|
|
|
"test_pymath"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-08-21 13:32:41 +00:00
|
|
|
pythonImportsCheck = [ "atsim.potentials" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|