3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/Wand/default.nix
Silvan Mosberger d089bd0876
pythonPackages.Wand: Fix evaluation, passthru imagemagick
As required by SQLAlchemy-ImageAttach (which doesn't even build
currently though)
2019-01-29 00:46:59 +01:00

34 lines
751 B
Nix

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