mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 10:16:44 +01:00
a4ed97daf0
Python bindings should be in python-packages.nix.
44 lines
912 B
Nix
44 lines
912 B
Nix
{ 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.";
|
|
};
|
|
}
|