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