mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-05 17:56:46 +01:00
34 lines
765 B
Nix
34 lines
765 B
Nix
{ stdenv
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, imagemagick7Big
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "Wand";
|
|
version = "0.6.4";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "6aeb0183d94762b37a8cdee97174f38ae21e626d44f62f1e2f0ab48a35026e98";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|