nixpkgs/pkgs/development/python-modules/Wand/default.nix
R. RyanTM 5ef740182b python37Packages.Wand: 0.5.4 -> 0.5.5
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/python3.7-wand/versions
2019-07-16 08:20:24 -07:00

34 lines
751 B
Nix

{ stdenv
, buildPythonPackage
, fetchPypi
, imagemagick7Big
}:
buildPythonPackage rec {
pname = "Wand";
version = "0.5.5";
src = fetchPypi {
inherit pname version;
sha256 = "1qjwqshcrfsa2a0j9bk0w01y857idzic1bj202p9cpar3xsjjw69";
};
postPatch = ''
substituteInPlace wand/api.py --replace \
"magick_home = os.environ.get('MAGICK_HOME')" \
"magick_home = '${imagemagick7Big}'"
'';
# tests not included with pypi release
doCheck = false;
passthru.imagemagick = imagemagick7Big;
meta = with stdenv.lib; {
description = "Ctypes-based simple MagickWand API binding for Python";
homepage = http://wand-py.org/;
license = [ licenses.mit ];
maintainers = with maintainers; [ infinisil ];
};
}