nixpkgs-suyu/pkgs/development/python-modules/wand/default.nix
adisbladis 02dab4ab5c python3.pkgs.*: Explicitly pass buildPythonPackage format parameter
Long term we should move everything over to `pyproject = true`, but in
the mean time we can work towards deprecating the implicit `format` paremeter.

cc https://github.com/NixOS/nixpkgs/issues/253154
cc @mweinelt @figsoda
2023-12-07 17:46:49 +01:00

48 lines
1.1 KiB
Nix

{ lib
, buildPythonPackage
, fetchPypi
, imagemagickBig
, py
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "wand";
version = "0.6.13";
format = "setuptools";
src = fetchPypi {
pname = "Wand";
inherit version;
hash = "sha256-9QE0hOr3og6yLRghqu/mC1DMMpciNytfhWXUbUqq/Mo=";
};
postPatch = ''
substituteInPlace wand/api.py --replace \
"magick_home = os.environ.get('MAGICK_HOME')" \
"magick_home = '${imagemagickBig}'"
'';
nativeCheckInputs = [
py
pytestCheckHook
];
disabledTests = [
# https://github.com/emcconville/wand/issues/558
"test_forward_fourier_transform"
"test_inverse_fourier_transform"
# our imagemagick doesn't set MagickReleaseDate
"test_configure_options"
];
passthru.imagemagick = imagemagickBig;
meta = with lib; {
changelog = "https://docs.wand-py.org/en/${version}/changes.html";
description = "Ctypes-based simple MagickWand API binding for Python";
homepage = "http://wand-py.org/";
license = [ licenses.mit ];
maintainers = with maintainers; [ infinisil dotlambda ];
};
}