blob: a647fa1005bc5ce919c1ef8414ccd00800f06fe9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
{ lib
, buildPythonPackage
, fetchurl
, python
, pkg-config
, imagemagick
, autoreconfHook
, boost
, isPy3k
, pythonImportsCheckHook
}:
buildPythonPackage rec {
pname = "pythonmagick";
version = "0.9.16";
format = "other";
src = fetchurl {
url = "mirror://imagemagick/python/releases/PythonMagick-${version}.tar.xz";
sha256 = "137278mfb5079lns2mmw73x8dhpzgwha53dyl00mmhj2z25varpn";
};
postPatch = ''
rm configure
'';
configureFlags = [ "--with-boost=${boost}" ];
nativeBuildInputs = [ pkg-config autoreconfHook pythonImportsCheckHook ];
buildInputs = [ python boost imagemagick ];
pythonImportsCheck = [
"PythonMagick"
];
disabled = isPy3k;
meta = with lib; {
homepage = "http://www.imagemagick.org/script/api.php";
license = licenses.imagemagick;
description = "PythonMagick provides object oriented bindings for the ImageMagick Library.";
};
}
|