2017-07-19 12:35:21 +00:00
|
|
|
# This expression provides Python bindings to ImageMagick. Python libraries are supposed to be called via `python-packages.nix`.
|
|
|
|
|
2018-09-10 09:59:51 +00:00
|
|
|
{ stdenv, fetchurl, python, pkgconfig, imagemagick, autoreconfHook }:
|
2007-08-09 01:11:51 +00:00
|
|
|
|
2015-01-30 13:19:38 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "pythonmagick";
|
2017-03-18 21:27:12 +00:00
|
|
|
version = "0.9.16";
|
2007-08-09 01:11:51 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2016-10-13 20:50:30 +00:00
|
|
|
url = "mirror://imagemagick/python/releases/PythonMagick-${version}.tar.xz";
|
2017-09-14 12:39:28 +00:00
|
|
|
sha256 = "137278mfb5079lns2mmw73x8dhpzgwha53dyl00mmhj2z25varpn";
|
2007-08-09 01:11:51 +00:00
|
|
|
};
|
|
|
|
|
2018-09-10 09:59:51 +00:00
|
|
|
postPatch = ''
|
|
|
|
rm configure
|
|
|
|
'';
|
2007-08-09 01:11:51 +00:00
|
|
|
|
2018-09-10 09:59:51 +00:00
|
|
|
configureFlags = [ "--with-boost=${python.pkgs.boost}" ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig autoreconfHook ];
|
|
|
|
buildInputs = [ python python.pkgs.boost imagemagick ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2008-01-30 19:49:42 +00:00
|
|
|
homepage = http://www.imagemagick.org/script/api.php;
|
2018-09-10 09:59:51 +00:00
|
|
|
license = licenses.imagemagick;
|
|
|
|
description = "PythonMagick provides object oriented bindings for the ImageMagick Library.";
|
2008-01-30 19:49:42 +00:00
|
|
|
};
|
2007-08-09 01:11:51 +00:00
|
|
|
}
|