depot/third_party/nixpkgs/pkgs/development/python-modules/pythonmagick/default.nix
Default email d7dbe45cea Project import generated by Copybara.
GitOrigin-RevId: 9480bae337095fd24f61380bce3174fdfe926a00
2020-06-18 09:06:33 +02:00

43 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.";
};
}