nixpkgs/pkgs/development/python-modules/Wand/default.nix
2019-02-17 14:40:55 +01:00

34 lines
763 B
Nix

{ stdenv
, buildPythonPackage
, fetchPypi
, imagemagick7Big
}:
buildPythonPackage rec {
pname = "Wand";
version = "0.5.1";
src = fetchPypi {
inherit pname version;
sha256 = "7d6b8dc9d4eaccc430b9c86e6b749013220c994970a3f39e902b397e2fa732c3";
};
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 ];
};
}