2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, fetchPypi
|
|
|
|
, buildPythonPackage
|
|
|
|
, isPy27
|
2024-05-15 15:35:15 +00:00
|
|
|
, pythonAtLeast
|
|
|
|
, setuptools
|
2020-04-24 23:36:52 +00:00
|
|
|
, numpy
|
|
|
|
, scipy
|
|
|
|
, matplotlib
|
|
|
|
, flask
|
|
|
|
, pillow
|
|
|
|
, psycopg2
|
2024-05-15 15:35:15 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, pytest-mock
|
|
|
|
, pytest-xdist
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ase";
|
2021-12-26 17:43:05 +00:00
|
|
|
version = "3.22.1";
|
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;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-AE32sOoEsRFMeQ+t/kXUEl6w5TElxmqTQlr4U9gqtDI=";
|
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-05-15 15:35:15 +00:00
|
|
|
dependencies = [ numpy scipy matplotlib flask pillow psycopg2 ];
|
|
|
|
|
|
|
|
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
|
|
|
|
]
|
|
|
|
++ lib.optionals (pythonAtLeast "3.12") [
|
|
|
|
"test_info_calculators"
|
|
|
|
];
|
|
|
|
|
|
|
|
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;
|
2023-08-04 22:07:22 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|