1{ lib 2, buildPythonPackage 3, fetchurl 4, python 5, pkg-config 6, imagemagick 7, autoreconfHook 8, boost 9, isPy3k 10, pythonImportsCheckHook 11}: 12 13buildPythonPackage rec { 14 pname = "pythonmagick"; 15 version = "0.9.16"; 16 format = "other"; 17 18 src = fetchurl { 19 url = "mirror://imagemagick/python/releases/PythonMagick-${version}.tar.xz"; 20 sha256 = "137278mfb5079lns2mmw73x8dhpzgwha53dyl00mmhj2z25varpn"; 21 }; 22 23 postPatch = '' 24 rm configure 25 ''; 26 27 configureFlags = [ "--with-boost=${boost}" ]; 28 29 nativeBuildInputs = [ pkg-config autoreconfHook pythonImportsCheckHook ]; 30 buildInputs = [ python boost imagemagick ]; 31 32 pythonImportsCheck = [ 33 "PythonMagick" 34 ]; 35 36 disabled = isPy3k; 37 38 meta = with lib; { 39 homepage = "http://www.imagemagick.org/script/api.php"; 40 license = licenses.imagemagick; 41 description = "PythonMagick provides object oriented bindings for the ImageMagick Library."; 42 }; 43}