about summary refs log tree commit diff
path: root/pkgs/development/python-modules/Wand
diff options
context:
space:
mode:
authorSilvan Mosberger <infinisil@icloud.com>2019-01-28 23:34:28 +0100
committerSilvan Mosberger <infinisil@icloud.com>2019-01-28 23:34:28 +0100
commit4ba2d947ff0e82cb31ee15bb0a084a60f8db1b2c (patch)
treeaeead4f411042ff3fb5cce3b75ad2a96e5ce2ebe /pkgs/development/python-modules/Wand
parent07c3f81aa600a5ba4f90f820659a0ba703384b47 (diff)
pythonPackages.Wand: Clean up and switch to imagemagick7
http://docs.wand-py.org/en/0.5.0/whatsnew/0.5.html#imagemagick-7-support
Diffstat (limited to 'pkgs/development/python-modules/Wand')
-rw-r--r--pkgs/development/python-modules/Wand/default.nix25
1 files changed, 4 insertions, 21 deletions
diff --git a/pkgs/development/python-modules/Wand/default.nix b/pkgs/development/python-modules/Wand/default.nix
index cc958977b10d9..c9dee418101dc 100644
--- a/pkgs/development/python-modules/Wand/default.nix
+++ b/pkgs/development/python-modules/Wand/default.nix
@@ -1,18 +1,10 @@
 { stdenv
 , buildPythonPackage
 , fetchPypi
-, imagemagick
-, pytest
-, psutil
-, memory_profiler
-, pytest_xdist
+, imagemagick7Big
 }:
 
-let
-  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 {
+buildPythonPackage rec {
   pname = "Wand";
   version = "0.5.0";
 
@@ -21,16 +13,10 @@ in buildPythonPackage rec {
     sha256 = "0rp1zdp2p7qngva5amcw4jb5i8gf569v8469gf6zj36hcnzksxjj";
   };
 
-  checkInputs = [ pytest pytest_xdist memory_profiler psutil ];
-
-  buildInputs = [ imagemagick ];
-
-  inherit magick_wand_library imagemagick_library;
-
   postPatch = ''
     substituteInPlace wand/api.py --replace \
       "magick_home = os.environ.get('MAGICK_HOME')" \
-      "magick_home = '${imagemagick}'"
+      "magick_home = '${imagemagick7Big}'"
   '';
 
   # tests not included with pypi release
@@ -40,9 +26,6 @@ in buildPythonPackage rec {
     description = "Ctypes-based simple MagickWand API binding for Python";
     homepage = http://wand-py.org/;
     license = [ licenses.mit ];
-  };
-
-  passthru = {
-    inherit imagemagick;
+    maintainers = with maintainers; [ infinisil ];
   };
 }