Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 33 lines 752 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, imagemagickBig 5}: 6 7buildPythonPackage rec { 8 pname = "Wand"; 9 version = "0.6.6"; 10 11 src = fetchPypi { 12 inherit pname version; 13 sha256 = "540a2da5fb3ada1f0abf6968e0fa01ca7de6cd517f3be5c52d03a4fc8d54d75e"; 14 }; 15 16 postPatch = '' 17 substituteInPlace wand/api.py --replace \ 18 "magick_home = os.environ.get('MAGICK_HOME')" \ 19 "magick_home = '${imagemagickBig}'" 20 ''; 21 22 # tests not included with pypi release 23 doCheck = false; 24 25 passthru.imagemagick = imagemagickBig; 26 27 meta = with lib; { 28 description = "Ctypes-based simple MagickWand API binding for Python"; 29 homepage = "http://wand-py.org/"; 30 license = [ licenses.mit ]; 31 maintainers = with maintainers; [ infinisil ]; 32 }; 33}