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