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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
752 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
, imagemagickBig
}:
buildPythonPackage rec {
pname = "Wand";
2021-08-19 05:00:17 +02:00
version = "0.6.7";
src = fetchPypi {
inherit pname version;
2021-08-19 05:00:17 +02:00
sha256 = "ebc01bccc25dba68414ab55b482341f9ad2b197d7f49d5e724f339bbf63fb6db";
};
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 ];
};
}