2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
pythonAtLeast,
|
|
|
|
fetchFromGitHub,
|
|
|
|
setuptools,
|
|
|
|
configparser,
|
|
|
|
pyparsing,
|
|
|
|
pytestCheckHook,
|
|
|
|
future,
|
|
|
|
openpyxl,
|
|
|
|
wrapt,
|
|
|
|
scipy,
|
|
|
|
cexprtk,
|
|
|
|
deepdiff,
|
|
|
|
sympy,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2022-08-21 13:32:41 +00:00
|
|
|
pname = "atsim-potentials";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "0.4.1";
|
|
|
|
pyproject = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-08-21 13:32:41 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mjdrushton";
|
2024-05-15 15:35:15 +00:00
|
|
|
repo = "atsim-potentials";
|
2022-12-28 21:21:41 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-G7lNqwEUwAT0f7M2nUTCxpXOAl6FWKlh7tcsvbur1eM=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
build-system = [ setuptools ];
|
2022-08-21 13:32:41 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
dependencies = [
|
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
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-08-21 13:32:41 +00:00
|
|
|
deepdiff
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
# these files try to import `distutils` removed in Python 3.12
|
|
|
|
disabledTestPaths = lib.optionals (pythonAtLeast "3.12") [
|
|
|
|
"tests/config/test_configuration_eam.py"
|
|
|
|
"tests/config/test_configuration_eam_fs.py"
|
|
|
|
"tests/config/test_configuration_pair.py"
|
|
|
|
"tests/test_dlpoly_writeTABEAM.py"
|
|
|
|
"tests/test_documentation_examples.py"
|
|
|
|
"tests/test_eam_adp_writer.py"
|
|
|
|
"tests/test_gulp_writer.py"
|
|
|
|
"tests/test_lammpsWriteEAM.py"
|
|
|
|
];
|
|
|
|
|
2022-08-21 13:32:41 +00:00
|
|
|
disabledTests = [
|
|
|
|
# Missing lammps executable
|
|
|
|
"eam_tabulate_example2TestCase"
|
|
|
|
];
|
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";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "potable";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
2023-08-04 22:07:22 +00:00
|
|
|
maintainers = [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|