2017-05-01 11:20:13 +02:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2019-01-28 23:34:28 +01:00
|
|
|
, imagemagick7Big
|
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";
|
2019-09-28 22:41:18 +02:00
|
|
|
version = "0.5.7";
|
2017-05-01 11:20:13 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-09-28 22:41:18 +02:00
|
|
|
sha256 = "0wvqzppflph3fkgkyv3k11ga28fv1g1bz8sbf227d7pql8c6ia8k";
|
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')" \
|
2019-01-28 23:34:28 +01:00
|
|
|
"magick_home = '${imagemagick7Big}'"
|
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
|
|
|
|
2019-01-29 00:45:23 +01:00
|
|
|
passthru.imagemagick = imagemagick7Big;
|
|
|
|
|
2018-12-02 13:52:42 +01:00
|
|
|
meta = with stdenv.lib; {
|
2017-05-01 11:20:13 +02:00
|
|
|
description = "Ctypes-based simple MagickWand API binding for Python";
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|