2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
2024-06-20 14:57:18 +00:00
|
|
|
stdenv,
|
2024-06-05 15:53:02 +00:00
|
|
|
fetchPypi,
|
|
|
|
buildPythonPackage,
|
|
|
|
isPy27,
|
|
|
|
pythonAtLeast,
|
|
|
|
setuptools,
|
|
|
|
numpy,
|
|
|
|
scipy,
|
|
|
|
matplotlib,
|
|
|
|
flask,
|
|
|
|
pillow,
|
|
|
|
psycopg2,
|
2024-06-20 14:57:18 +00:00
|
|
|
tkinter,
|
2024-06-05 15:53:02 +00:00
|
|
|
pytestCheckHook,
|
|
|
|
pytest-mock,
|
|
|
|
pytest-xdist,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ase";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "3.23.0";
|
2024-05-15 15:35:15 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
disabled = isPy27;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-kaKqMdib2QsO/f5KfoQmTzKCiyq/yfOOZeBBrXb+yK4=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
build-system = [ setuptools ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
dependencies = [
|
|
|
|
numpy
|
|
|
|
scipy
|
|
|
|
matplotlib
|
|
|
|
flask
|
|
|
|
pillow
|
|
|
|
psycopg2
|
2024-06-20 14:57:18 +00:00
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
|
|
tkinter
|
2024-06-05 15:53:02 +00:00
|
|
|
];
|
2024-05-15 15:35:15 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
pytest-mock
|
|
|
|
pytest-xdist
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
disabledTests = [
|
|
|
|
"test_fundamental_params"
|
|
|
|
"test_ase_bandstructure"
|
|
|
|
"test_imports"
|
|
|
|
"test_units"
|
|
|
|
"test_favicon"
|
|
|
|
"test_vibrations_methods" # missing attribute
|
|
|
|
"test_jmol_roundtrip" # missing attribute
|
2024-07-27 06:49:29 +00:00
|
|
|
"test_pw_input_write_nested_flat" # Did not raise DeprecationWarning
|
|
|
|
"test_fix_scaled" # Did not raise UserWarning
|
2024-06-05 15:53:02 +00:00
|
|
|
] ++ lib.optionals (pythonAtLeast "3.12") [ "test_info_calculators" ];
|
2024-05-15 15:35:15 +00:00
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
export PATH="$out/bin:$PATH"
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-07-14 22:03:04 +00:00
|
|
|
pythonImportsCheck = [ "ase" ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Atomic Simulation Environment";
|
|
|
|
homepage = "https://wiki.fysik.dtu.dk/ase/";
|
|
|
|
license = licenses.lgpl21Plus;
|
2024-07-31 10:19:44 +00:00
|
|
|
maintainers = [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|