depot/third_party/nixpkgs/pkgs/development/python-modules/Wand/default.nix

34 lines
739 B
Nix
Raw Normal View History

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