python3Packages.ase: cleanup, skip failing test (#421266)

authored by Gaétan Lepage and committed by GitHub 41dc4c1e 3b0f152c

+23 -13
+23 -13
pkgs/development/python-modules/ase/default.nix
··· 1 1 { 2 2 lib, 3 3 stdenv, 4 - fetchPypi, 5 4 buildPythonPackage, 6 5 isPy27, 6 + fetchPypi, 7 7 pythonAtLeast, 8 + 9 + # build-system 8 10 setuptools, 9 - numpy, 10 - scipy, 11 - matplotlib, 11 + 12 + # dependencies 12 13 flask, 14 + matplotlib, 15 + numpy, 13 16 pillow, 14 17 psycopg2, 18 + scipy, 15 19 tkinter, 20 + 21 + # tests 22 + addBinToPathHook, 16 23 pytestCheckHook, 17 24 pytest-mock, 18 25 pytest-xdist, 26 + writableTmpDirAsHomeHook, 19 27 }: 20 28 21 29 buildPythonPackage rec { ··· 34 42 35 43 dependencies = 36 44 [ 37 - numpy 38 - scipy 45 + flask 39 46 matplotlib 40 - flask 47 + numpy 41 48 pillow 42 49 psycopg2 50 + scipy 43 51 ] 44 52 ++ lib.optionals stdenv.hostPlatform.isDarwin [ 45 53 tkinter 46 54 ]; 47 55 48 56 nativeCheckInputs = [ 57 + addBinToPathHook 49 58 pytestCheckHook 50 59 pytest-mock 51 60 pytest-xdist 61 + writableTmpDirAsHomeHook 52 62 ]; 53 63 54 64 disabledTests = [ 65 + # AssertionError: assert (1 != 0) == False 66 + # TypeError: list indices must be integers or slices, not numpy.bool 67 + "test_long" 68 + 55 69 "test_fundamental_params" 56 70 "test_ase_bandstructure" 57 71 "test_imports" ··· 64 78 "test_ipi_protocol" # flaky 65 79 ] ++ lib.optionals (pythonAtLeast "3.12") [ "test_info_calculators" ]; 66 80 67 - preCheck = '' 68 - export PATH="$out/bin:$PATH" 69 - ''; 70 - 71 81 pythonImportsCheck = [ "ase" ]; 72 82 73 - meta = with lib; { 83 + meta = { 74 84 description = "Atomic Simulation Environment"; 75 85 homepage = "https://wiki.fysik.dtu.dk/ase/"; 76 - license = licenses.lgpl21Plus; 86 + license = lib.licenses.lgpl21Plus; 77 87 maintainers = [ ]; 78 88 }; 79 89 }