anchor.diff: -{ buildPythonPackage, fetchFromGitHub, pillow, scipy, numpy, pytestCheckHook, imread, freeimage, lib, stdenv }:
  +{ buildPythonPackage
  +, fetchFromGitHub
  +, fetchpatch
  +, pillow
  +, scipy
  +, numpy
  +, pytestCheckHook
  +, imread
  +, freeimage
  +, lib
  +, stdenv
  +}:
   
   buildPythonPackage rec {
     pname = "mahotas";
  
positive.code:     sha256 = "1n19yha1cqyx7hnlici1wkl7n68dh0vbpsyydfhign2c0w9jvg42";
    };
  
    propagatedBuildInputs = [ numpy imread pillow scipy freeimage ];
    checkInputs = [ pytestCheckHook ];
  
    postPatch = ''
      substituteInPlace mahotas/io/freeimage.py --replace "/opt/local/lib" "${freeimage}/lib"
    '';
  
    # tests must be run in the build directory
  
negative.code:     "test_haralick3d"
    ];
  
    pythonImportsCheck = [
      "mahotas"
      "mahotas.freeimage"
    ];
  
    disabled = stdenv.isi686; # Failing tests
  
    meta = with lib; {
  