1{
2 buildPythonPackage,
3 ninja,
4 fetchPypi,
5 meson,
6 lib,
7 cython,
8 meson-python,
9 numpy,
10 lxml,
11 h5py,
12 hdf5plugin,
13 pillow,
14 tomli,
15}:
16
17buildPythonPackage rec {
18 pname = "fabio";
19 version = "2024.9.0";
20 pyproject = true;
21
22 src = fetchPypi {
23 inherit pname version;
24 hash = "sha256-+HPfUfRoUxwRqufgzYihTyIfTvCUMfvFpspnse1HU1s=";
25 };
26
27 pythonImportsCheck = [ "fabio" ];
28
29 nativeBuildInputs = [
30 meson
31 cython
32 meson-python
33 ninja
34 ];
35
36 # While building, it tries to run version.py, which has a #!/usr/bin/env python3 shebang
37 postPatch = ''
38 patchShebangs --build version.py
39 '';
40
41 dependencies = [
42 numpy
43 lxml
44 h5py
45 hdf5plugin
46 pillow
47 tomli
48 ];
49
50 meta = {
51 changelog = "https://github.com/silx-kit/fabio/blob/main/doc/source/Changelog.rst";
52 description = "I/O library for images produced by 2D X-ray detector";
53 homepage = "https://github.com/silx-kit/fabio";
54 license = [ lib.licenses.mit ];
55 maintainers = [ lib.maintainers.pmiddend ];
56 };
57
58}