12 stdenv.mkDerivation rec {
17 # Removing unecessary build dependency
18 substituteInPlace python/setup.py --replace "'pytest-runner'," ""
20 # Fixing bug making one test fail in the python 3.10 build
21 substituteInPlace python/segyio/open.py --replace \
22 "cube_metrics = f.xfd.cube_metrics(iline, xline)" \
23 "cube_metrics = f.xfd.cube_metrics(int(iline), int(xline))"
26 src = fetchFromGitHub {
29 rev = "refs/tags/v${version}";
30 hash = "sha256-+N2JvHBxpdbysn4noY/9LZ4npoQ9143iFEzaxoafnms=";
33 nativeBuildInputs = [ cmake ninja python scikit-build ];
36 # I'm not modifying the checkPhase nor adding a pytestCheckHook because the pytest is called
37 # within the cmake test phase
38 nativeCheckInputs = [ pytest numpy ];
41 description = "Fast Python library for SEGY files";
42 homepage = "https://github.com/equinor/segyio";
43 license = licenses.lgpl3Only;
44 maintainers = with maintainers; [ atila ];