12 buildPythonPackage rec {
15 pyproject = false; # Built with cmake
18 # https://github.com/equinor/segyio/pull/570
19 ./add_missing_cstdint.patch
23 # Removing unecessary build dependency
24 substituteInPlace python/setup.py --replace "'pytest-runner'," ""
26 # Fixing bug making one test fail in the python 3.10 build
27 substituteInPlace python/segyio/open.py --replace \
28 "cube_metrics = f.xfd.cube_metrics(iline, xline)" \
29 "cube_metrics = f.xfd.cube_metrics(int(iline), int(xline))"
32 src = fetchFromGitHub {
35 rev = "refs/tags/v${version}";
36 hash = "sha256-+N2JvHBxpdbysn4noY/9LZ4npoQ9143iFEzaxoafnms=";
45 # I'm not modifying the checkPhase nor adding a pytestCheckHook because the pytest is called
46 # within the cmake test phase
53 description = "Fast Python library for SEGY files";
54 homepage = "https://github.com/equinor/segyio";
55 license = licenses.lgpl3Only;
56 maintainers = with maintainers; [ atila ];