mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 23:22:37 +00:00
pythonPackages.Wand: Clean up and switch to imagemagick7
http://docs.wand-py.org/en/0.5.0/whatsnew/0.5.html#imagemagick-7-support
This commit is contained in:
parent
07c3f81aa6
commit
4ba2d947ff
@ -1,18 +1,10 @@
|
|||||||
{ stdenv
|
{ stdenv
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, imagemagick
|
, imagemagick7Big
|
||||||
, pytest
|
|
||||||
, psutil
|
|
||||||
, memory_profiler
|
|
||||||
, pytest_xdist
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
buildPythonPackage rec {
|
||||||
soext = stdenv.hostPlatform.extensions.sharedLibrary;
|
|
||||||
magick_wand_library = "${imagemagick}/lib/libMagickWand-6.Q16${soext}";
|
|
||||||
imagemagick_library = "${imagemagick}/lib/libMagickCore-6.Q16${soext}";
|
|
||||||
in buildPythonPackage rec {
|
|
||||||
pname = "Wand";
|
pname = "Wand";
|
||||||
version = "0.5.0";
|
version = "0.5.0";
|
||||||
|
|
||||||
@ -21,16 +13,10 @@ in buildPythonPackage rec {
|
|||||||
sha256 = "0rp1zdp2p7qngva5amcw4jb5i8gf569v8469gf6zj36hcnzksxjj";
|
sha256 = "0rp1zdp2p7qngva5amcw4jb5i8gf569v8469gf6zj36hcnzksxjj";
|
||||||
};
|
};
|
||||||
|
|
||||||
checkInputs = [ pytest pytest_xdist memory_profiler psutil ];
|
|
||||||
|
|
||||||
buildInputs = [ imagemagick ];
|
|
||||||
|
|
||||||
inherit magick_wand_library imagemagick_library;
|
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace wand/api.py --replace \
|
substituteInPlace wand/api.py --replace \
|
||||||
"magick_home = os.environ.get('MAGICK_HOME')" \
|
"magick_home = os.environ.get('MAGICK_HOME')" \
|
||||||
"magick_home = '${imagemagick}'"
|
"magick_home = '${imagemagick7Big}'"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# tests not included with pypi release
|
# tests not included with pypi release
|
||||||
@ -40,9 +26,6 @@ in buildPythonPackage rec {
|
|||||||
description = "Ctypes-based simple MagickWand API binding for Python";
|
description = "Ctypes-based simple MagickWand API binding for Python";
|
||||||
homepage = http://wand-py.org/;
|
homepage = http://wand-py.org/;
|
||||||
license = [ licenses.mit ];
|
license = [ licenses.mit ];
|
||||||
};
|
maintainers = with maintainers; [ infinisil ];
|
||||||
|
|
||||||
passthru = {
|
|
||||||
inherit imagemagick;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -4164,9 +4164,7 @@ in {
|
|||||||
|
|
||||||
websockets = callPackage ../development/python-modules/websockets { };
|
websockets = callPackage ../development/python-modules/websockets { };
|
||||||
|
|
||||||
Wand = callPackage ../development/python-modules/Wand {
|
Wand = callPackage ../development/python-modules/Wand { };
|
||||||
imagemagick = pkgs.imagemagickBig;
|
|
||||||
};
|
|
||||||
|
|
||||||
wcwidth = callPackage ../development/python-modules/wcwidth { };
|
wcwidth = callPackage ../development/python-modules/wcwidth { };
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user