Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.09 33 lines 751 B view raw
1{ stdenv 2, buildPythonPackage 3, fetchPypi 4, imagemagick7Big 5}: 6 7buildPythonPackage rec { 8 pname = "Wand"; 9 version = "0.5.7"; 10 11 src = fetchPypi { 12 inherit pname version; 13 sha256 = "0wvqzppflph3fkgkyv3k11ga28fv1g1bz8sbf227d7pql8c6ia8k"; 14 }; 15 16 postPatch = '' 17 substituteInPlace wand/api.py --replace \ 18 "magick_home = os.environ.get('MAGICK_HOME')" \ 19 "magick_home = '${imagemagick7Big}'" 20 ''; 21 22 # tests not included with pypi release 23 doCheck = false; 24 25 passthru.imagemagick = imagemagick7Big; 26 27 meta = with stdenv.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}