3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/Wand/default.nix

34 lines
763 B
Nix
Raw Normal View History

{ stdenv
, buildPythonPackage
, fetchPypi
, imagemagick7Big
}:
buildPythonPackage rec {
pname = "Wand";
2019-04-24 17:42:47 +01:00
version = "0.5.3";
src = fetchPypi {
inherit pname version;
2019-04-24 17:42:47 +01:00
sha256 = "a2c318993791fab4fcfd460045415176f81d42f8c6fd8a88fb8d74d2f0f34b97";
};
postPatch = ''
substituteInPlace wand/api.py --replace \
"magick_home = os.environ.get('MAGICK_HOME')" \
"magick_home = '${imagemagick7Big}'"
'';
# tests not included with pypi release
doCheck = false;
passthru.imagemagick = imagemagick7Big;
meta = with stdenv.lib; {
description = "Ctypes-based simple MagickWand API binding for Python";
homepage = http://wand-py.org/;
license = [ licenses.mit ];
maintainers = with maintainers; [ infinisil ];
};
}