pythonmagick -> python2.pkgs.pythonmagick

Python bindings should be in python-packages.nix.
This commit is contained in:
Frederik Rietdijk
2020-06-05 12:00:31 +02:00
parent c055fc0319
commit a4ed97daf0
3 changed files with 25 additions and 10 deletions

View File

@@ -0,0 +1,43 @@
{ 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.";
};
}