nixpkgs/pkgs/development/python-modules/pythonmagick/default.nix
Frederik Rietdijk a4ed97daf0 pythonmagick -> python2.pkgs.pythonmagick
Python bindings should be in python-packages.nix.
2020-06-05 12:01:02 +02:00

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