python3Packages.wand: 0.6.13 -> 0.7.0
Diff: https://github.com/emcconville/wand/compare/0.6.13...0.7.0 Changelog: https://docs.wand-py.org/en/0.7.0/changes.html
This commit is contained in:
@@ -2,42 +2,37 @@
|
||||
stdenv,
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchPypi,
|
||||
fetchFromGitHub,
|
||||
imagemagickBig,
|
||||
py,
|
||||
pytestCheckHook,
|
||||
setuptools,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "wand";
|
||||
version = "0.6.13";
|
||||
format = "setuptools";
|
||||
version = "0.7.0";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchPypi {
|
||||
pname = "Wand";
|
||||
inherit version;
|
||||
hash = "sha256-9QE0hOr3og6yLRghqu/mC1DMMpciNytfhWXUbUqq/Mo=";
|
||||
src = fetchFromGitHub {
|
||||
owner = "emcconville";
|
||||
repo = "wand";
|
||||
tag = version;
|
||||
hash = "sha256-U4qxtOC72YSgo74OZdFmMG8W2s4wFI0ohJ7uJ4caabA=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace wand/api.py --replace \
|
||||
substituteInPlace wand/api.py --replace-fail \
|
||||
"magick_home = os.environ.get('MAGICK_HOME')" \
|
||||
"magick_home = '${imagemagickBig}'"
|
||||
'';
|
||||
|
||||
build-system = [ setuptools ];
|
||||
|
||||
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"
|
||||
]
|
||||
++ lib.optionals stdenv.hostPlatform.isDarwin [
|
||||
disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [
|
||||
# AssertionError: assert wand.color.Color('srgb(255,0,1.41553e-14)') == wand.color.Color('srgb(255,0,0)')
|
||||
"test_sparse_color"
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user