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