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