1{ lib
2, buildPythonPackage
3, fetchPypi
4, imagemagickBig
5}:
6
7buildPythonPackage rec {
8 pname = "Wand";
9 version = "0.6.7";
10
11 src = fetchPypi {
12 inherit pname version;
13 sha256 = "ebc01bccc25dba68414ab55b482341f9ad2b197d7f49d5e724f339bbf63fb6db";
14 };
15
16 postPatch = ''
17 substituteInPlace wand/api.py --replace \
18 "magick_home = os.environ.get('MAGICK_HOME')" \
19 "magick_home = '${imagemagickBig}'"
20 '';
21
22 # tests not included with pypi release
23 doCheck = false;
24
25 passthru.imagemagick = imagemagickBig;
26
27 meta = with lib; {
28 description = "Ctypes-based simple MagickWand API binding for Python";
29 homepage = "http://wand-py.org/";
30 license = [ licenses.mit ];
31 maintainers = with maintainers; [ infinisil ];
32 };
33}