2020-06-05 03:00:31 -07:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchurl
|
|
|
|
, python
|
|
|
|
, pkg-config
|
|
|
|
, imagemagick
|
|
|
|
, autoreconfHook
|
|
|
|
, boost
|
|
|
|
, isPy3k
|
|
|
|
, pythonImportsCheckHook
|
|
|
|
}:
|
2017-07-19 05:35:21 -07:00
|
|
|
|
2020-06-05 03:00:31 -07:00
|
|
|
buildPythonPackage rec {
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "pythonmagick";
|
2017-03-18 14:27:12 -07:00
|
|
|
version = "0.9.16";
|
2020-06-05 03:00:31 -07:00
|
|
|
format = "other";
|
2007-08-08 18:11:51 -07:00
|
|
|
|
|
|
|
src = fetchurl {
|
2016-10-13 13:50:30 -07:00
|
|
|
url = "mirror://imagemagick/python/releases/PythonMagick-${version}.tar.xz";
|
2017-09-14 05:39:28 -07:00
|
|
|
sha256 = "137278mfb5079lns2mmw73x8dhpzgwha53dyl00mmhj2z25varpn";
|
2007-08-08 18:11:51 -07:00
|
|
|
};
|
|
|
|
|
2018-09-10 02:59:51 -07:00
|
|
|
postPatch = ''
|
|
|
|
rm configure
|
|
|
|
'';
|
2007-08-08 18:11:51 -07:00
|
|
|
|
2020-06-05 03:00:31 -07:00
|
|
|
configureFlags = [ "--with-boost=${boost}" ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config autoreconfHook pythonImportsCheckHook ];
|
|
|
|
buildInputs = [ python boost imagemagick ];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"PythonMagick"
|
|
|
|
];
|
2018-09-10 02:59:51 -07:00
|
|
|
|
2020-06-05 03:00:31 -07:00
|
|
|
disabled = isPy3k;
|
2018-09-10 02:59:51 -07:00
|
|
|
|
2020-06-05 03:00:31 -07:00
|
|
|
meta = with lib; {
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "http://www.imagemagick.org/script/api.php";
|
2018-09-10 02:59:51 -07:00
|
|
|
license = licenses.imagemagick;
|
|
|
|
description = "PythonMagick provides object oriented bindings for the ImageMagick Library.";
|
2008-01-30 11:49:42 -08:00
|
|
|
};
|
2007-08-08 18:11:51 -07:00
|
|
|
}
|