2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2021-03-09 03:18:52 +00:00
|
|
|
, imagemagickBig
|
2022-11-21 17:40:18 +00:00
|
|
|
, pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2022-11-21 17:40:18 +00:00
|
|
|
pname = "wand";
|
2022-08-21 13:32:41 +00:00
|
|
|
version = "0.6.10";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2022-11-21 17:40:18 +00:00
|
|
|
pname = "Wand";
|
|
|
|
inherit version;
|
2022-08-21 13:32:41 +00:00
|
|
|
sha256 = "sha256-Nz9KfyhmyGjDHOkQ4fmzapLRMmQKIAaOwXzqMoT+3Fc=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace wand/api.py --replace \
|
|
|
|
"magick_home = os.environ.get('MAGICK_HOME')" \
|
2021-03-09 03:18:52 +00:00
|
|
|
"magick_home = '${imagemagickBig}'"
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2022-11-21 17:40:18 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# https://github.com/emcconville/wand/issues/558
|
|
|
|
"test_forward_fourier_transform"
|
|
|
|
"test_inverse_fourier_transform"
|
|
|
|
# our imagemagick doesn't set MagickReleaseDate
|
|
|
|
"test_configure_options"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
passthru.imagemagick = imagemagickBig;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Ctypes-based simple MagickWand API binding for Python";
|
|
|
|
homepage = "http://wand-py.org/";
|
|
|
|
license = [ licenses.mit ];
|
|
|
|
maintainers = with maintainers; [ infinisil ];
|
|
|
|
};
|
|
|
|
}
|