at master 2.7 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 6 # build-system 7 setuptools, 8 9 # dependencies 10 h5py, 11 netcdf4, 12 numpy, 13 rich, 14 15 # tests 16 exdown, 17 pytestCheckHook, 18}: 19 20buildPythonPackage rec { 21 pname = "meshio"; 22 version = "5.3.5"; 23 pyproject = true; 24 25 src = fetchFromGitHub { 26 owner = "nschloe"; 27 repo = "meshio"; 28 tag = "v${version}"; 29 hash = "sha256-2j+5BYftCiy+g33UbsgCMWBRggGBJBx5VoEdSqQ/mV0="; 30 }; 31 32 build-system = [ setuptools ]; 33 34 dependencies = [ 35 h5py 36 netcdf4 37 numpy 38 rich 39 ]; 40 41 pythonImportsCheck = [ "meshio" ]; 42 43 nativeCheckInputs = [ 44 exdown 45 pytestCheckHook 46 ]; 47 48 disabledTests = [ 49 # RuntimeError: Not a valid Netgen mesh 50 "test_advanced" 51 52 # ValueError: cannot reshape array of size 12 into shape (1936876918,3) 53 "test_area" 54 55 # Error: Couldn't read file /build/source/tests/meshes/vtk/06_color_scalars.vtk as vtk 56 # Illegal VTK header 57 "test_color_scalars" 58 "test_pathlike" 59 60 # AssertionError 61 "test_comma_space" 62 63 # ValueError: could not convert string to float: 'np.float64(63.69616873214543)' 64 "test_dolfin" 65 66 # ValueError: cannot reshape array of size 1 into shape 67 "test_gmsh22" 68 "test_gmsh40" 69 "test_gmsh41" 70 71 # meshio._exceptions.ReadError: Header of ugrid file is ill-formed 72 "test_io" 73 "test_volume" 74 75 # ValueError: invalid literal for int() with base 10: 'version' 76 "test_point_cell_refs" 77 78 # Error: Couldn't read file /build/source/tests/meshes/vtu/01_raw_binary_int64.vtu as vtu 79 "test_read_from_file" 80 81 # ValueError: cannot reshape array of size 12 into shape (1936876918,3) 82 # -- or 83 # Error: Couldn't read file /build/source/tests/meshes/medit/hch_strct.4.meshb as medit 84 # Invalid code 85 # -- or 86 # AssertionError 87 # -- or 88 # Error: Couldn't read file /build/source/tests/meshes/msh/insulated-2.2.msh as either of ansys, gmsh 89 "test_reference_file" 90 91 # UnboundLocalError: cannot access local variable 'points' where it is not associated with a value 92 # -- or 93 # Error: Couldn't read file /build/source/tests/meshes/vtk/00_image.vtk as vtk 94 # Illegal VTK header 95 "test_structured" 96 97 # Error: Couldn't read file /build/source/tests/meshes/ply/bun_zipper_res4.ply as ply 98 # Expected ply 99 "test_read_pathlike" 100 "test_read_str" 101 "test_write_pathlike" 102 "test_write_str" 103 ]; 104 105 meta = { 106 description = "I/O for mesh files"; 107 homepage = "https://github.com/nschloe/meshio"; 108 changelog = "https://github.com/nschloe/meshio/blob/v${version}/CHANGELOG.md"; 109 mainProgram = "meshio"; 110 license = lib.licenses.mit; 111 maintainers = with lib.maintainers; [ wd15 ]; 112 }; 113}