3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/pythonmagick/default.nix

44 lines
912 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchurl
, python
, pkg-config
, imagemagick
, autoreconfHook
, boost
, isPy3k
, pythonImportsCheckHook
}:
buildPythonPackage rec {
pname = "pythonmagick";
2017-03-18 21:27:12 +00:00
version = "0.9.16";
format = "other";
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";
};
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.";
};
}