2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2017-05-01 10:20:13 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2019-01-28 22:34:28 +00:00
|
|
|
, imagemagick7Big
|
2017-05-01 10:20:13 +01:00
|
|
|
}:
|
|
|
|
|
2019-01-28 22:34:28 +00:00
|
|
|
buildPythonPackage rec {
|
2017-05-01 10:20:13 +01:00
|
|
|
pname = "Wand";
|
2020-11-30 00:23:02 +00:00
|
|
|
version = "0.6.5";
|
2017-05-01 10:20:13 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-30 00:23:02 +00:00
|
|
|
sha256 = "ec981b4f07f7582fc564aba8b57763a549392e9ef8b6a338e9da54cdd229cf95";
|
2017-05-01 10:20:13 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
2019-01-28 19:50:24 +00:00
|
|
|
substituteInPlace wand/api.py --replace \
|
|
|
|
"magick_home = os.environ.get('MAGICK_HOME')" \
|
2019-01-28 22:34:28 +00:00
|
|
|
"magick_home = '${imagemagick7Big}'"
|
2017-05-01 10:20:13 +01:00
|
|
|
'';
|
|
|
|
|
2018-12-02 12:52:42 +00:00
|
|
|
# tests not included with pypi release
|
2017-05-01 10:20:13 +01:00
|
|
|
doCheck = false;
|
2018-12-02 12:52:42 +00:00
|
|
|
|
2019-01-28 23:45:23 +00:00
|
|
|
passthru.imagemagick = imagemagick7Big;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-05-01 10:20:13 +01:00
|
|
|
description = "Ctypes-based simple MagickWand API binding for Python";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://wand-py.org/";
|
2018-12-02 12:52:42 +00:00
|
|
|
license = [ licenses.mit ];
|
2019-01-28 22:34:28 +00:00
|
|
|
maintainers = with maintainers; [ infinisil ];
|
2017-05-01 10:20:13 +01:00
|
|
|
};
|
|
|
|
}
|