1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 imagemagickBig,
6 py,
7 pytestCheckHook,
8}:
9
10buildPythonPackage rec {
11 pname = "wand";
12 version = "0.6.13";
13 format = "setuptools";
14
15 src = fetchPypi {
16 pname = "Wand";
17 inherit version;
18 hash = "sha256-9QE0hOr3og6yLRghqu/mC1DMMpciNytfhWXUbUqq/Mo=";
19 };
20
21 postPatch = ''
22 substituteInPlace wand/api.py --replace \
23 "magick_home = os.environ.get('MAGICK_HOME')" \
24 "magick_home = '${imagemagickBig}'"
25 '';
26
27 nativeCheckInputs = [
28 py
29 pytestCheckHook
30 ];
31
32 disabledTests = [
33 # https://github.com/emcconville/wand/issues/558
34 "test_forward_fourier_transform"
35 "test_inverse_fourier_transform"
36 # our imagemagick doesn't set MagickReleaseDate
37 "test_configure_options"
38 ];
39
40 passthru.imagemagick = imagemagickBig;
41
42 meta = with lib; {
43 changelog = "https://docs.wand-py.org/en/${version}/changes.html";
44 description = "Ctypes-based simple MagickWand API binding for Python";
45 homepage = "http://wand-py.org/";
46 license = [ licenses.mit ];
47 maintainers = with maintainers; [ dotlambda ];
48 };
49}