mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-05 13:23:17 +00:00
34 lines
753 B
Nix
34 lines
753 B
Nix
{ stdenv
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, imagemagick7Big
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "Wand";
|
|
version = "0.5.9";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "0a4v5cwnwsjxril7514ssvdqxsad227v5w7hcfqjkqzvaf7agb3f";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|