Files
nixpkgs/pkgs/development/python-modules/pythonmagick/default.nix
T

44 lines
912 B
Nix
Raw Normal View History

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