{ stdenv , buildPythonPackage , fetchPypi , imagemagick7Big }: buildPythonPackage rec { pname = "Wand"; version = "0.5.2"; src = fetchPypi { inherit pname version; sha256 = "0nvdq15gmkzhwpwkln8wmkq0h4izznnr6zmrnwqza8lsa1c0jz5f"; }; postPatch = '' substituteInPlace wand/api.py --replace \ "magick_home = os.environ.get('MAGICK_HOME')" \ "magick_home = '${imagemagick7Big}'" ''; # tests not included with pypi release doCheck = false; passthru.imagemagick = imagemagick7Big; meta = with stdenv.lib; { description = "Ctypes-based simple MagickWand API binding for Python"; homepage = http://wand-py.org/; license = [ licenses.mit ]; maintainers = with maintainers; [ infinisil ]; }; }