depot/third_party/nixpkgs/pkgs/development/python-modules/ase/default.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

76 lines
1.4 KiB
Nix

{
lib,
stdenv,
fetchPypi,
buildPythonPackage,
isPy27,
pythonAtLeast,
setuptools,
numpy,
scipy,
matplotlib,
flask,
pillow,
psycopg2,
tkinter,
pytestCheckHook,
pytest-mock,
pytest-xdist,
}:
buildPythonPackage rec {
pname = "ase";
version = "3.23.0";
pyproject = true;
disabled = isPy27;
src = fetchPypi {
inherit pname version;
hash = "sha256-kaKqMdib2QsO/f5KfoQmTzKCiyq/yfOOZeBBrXb+yK4=";
};
build-system = [ setuptools ];
dependencies = [
numpy
scipy
matplotlib
flask
pillow
psycopg2
] ++ lib.optionals stdenv.isDarwin [
tkinter
];
nativeCheckInputs = [
pytestCheckHook
pytest-mock
pytest-xdist
];
disabledTests = [
"test_fundamental_params"
"test_ase_bandstructure"
"test_imports"
"test_units"
"test_favicon"
"test_vibrations_methods" # missing attribute
"test_jmol_roundtrip" # missing attribute
"test_pw_input_write_nested_flat" # Did not raise DeprecationWarning
"test_fix_scaled" # Did not raise UserWarning
] ++ lib.optionals (pythonAtLeast "3.12") [ "test_info_calculators" ];
preCheck = ''
export PATH="$out/bin:$PATH"
'';
pythonImportsCheck = [ "ase" ];
meta = with lib; {
description = "Atomic Simulation Environment";
homepage = "https://wiki.fysik.dtu.dk/ase/";
license = licenses.lgpl21Plus;
maintainers = [ ];
};
}