14 buildPythonPackage rec {
18 src = fetchFromGitHub {
22 hash = "sha256-AmctF/9hLgHw6FUm0s61eCdcc12lBa1t0OkXclis//w=";
25 propagatedBuildInputs = [
33 nativeCheckInputs = [ pytestCheckHook ];
36 substituteInPlace mahotas/io/freeimage.py \
37 --replace "ctypes.util.find_library('freeimage')" 'True' \
38 --replace 'ctypes.CDLL(libname)' 'np.ctypeslib.load_library("libfreeimage", "${freeimage}/lib")'
41 # mahotas/_morph.cpp:864:10: error: no member named 'random_shuffle' in namespace 'std'
42 env = lib.optionalAttrs stdenv.cc.isClang {
43 NIX_CFLAGS_COMPILE = "-std=c++14";
46 # tests must be run in the build directory
51 # re-enable as soon as https://github.com/luispedro/mahotas/issues/97 is fixed
59 pythonImportsCheck = [
64 disabled = stdenv.isi686; # Failing tests
67 broken = (stdenv.isLinux && stdenv.isAarch64);
68 description = "Computer vision package based on numpy";
69 homepage = "https://mahotas.readthedocs.io/";
70 maintainers = with maintainers; [ luispedro ];
71 license = licenses.mit;
72 platforms = platforms.unix;