2017-07-19 14:35:21 +02:00
|
|
|
# This expression provides Python bindings to ImageMagick. Python libraries are supposed to be called via `python-packages.nix`.
|
|
|
|
|
2007-08-09 03:11:51 +02:00
|
|
|
{stdenv, fetchurl, python, boost, pkgconfig, imagemagick}:
|
|
|
|
|
2015-01-30 14:19:38 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "pythonmagick-${version}";
|
2017-03-18 22:27:12 +01:00
|
|
|
version = "0.9.16";
|
2007-08-09 03:11:51 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2016-10-13 22:50:30 +02:00
|
|
|
url = "mirror://imagemagick/python/releases/PythonMagick-${version}.tar.xz";
|
2017-03-18 22:27:12 +01:00
|
|
|
sha256 = "0vkgpmrdz530nyvmjahpdrvcj7fd7hvsp15d485hq6103qycisv8";
|
2007-08-09 03:11:51 +02:00
|
|
|
};
|
|
|
|
|
2017-03-18 22:27:12 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [python boost imagemagick];
|
2007-08-09 03:11:51 +02:00
|
|
|
|
2008-01-30 20:49:42 +01:00
|
|
|
meta = {
|
|
|
|
homepage = http://www.imagemagick.org/script/api.php;
|
|
|
|
};
|
2007-08-09 03:11:51 +02:00
|
|
|
}
|