python3Packages.mizani: 0.13.5 -> 0.14.1 (#418083)

This commit is contained in:
Yt
2025-07-11 06:50:54 -04:00
committed by GitHub
2 changed files with 22 additions and 6 deletions
@@ -19,14 +19,14 @@
buildPythonPackage rec {
pname = "mizani";
version = "0.13.5";
version = "0.14.2";
pyproject = true;
src = fetchFromGitHub {
owner = "has2k1";
repo = "mizani";
tag = "v${version}";
hash = "sha256-W88B8WCwIqjMhjoDJaksHBhvg/Sr0RRDwo9stniyzkM=";
hash = "sha256-g7eGajqFLgFWxNKefuYVWF439zVohU8W1j3w91nblEY=";
};
build-system = [ setuptools-scm ];
@@ -19,6 +19,7 @@
pytestCheckHook,
pytest-cov-stub,
scikit-misc,
writableTmpDirAsHomeHook,
}:
buildPythonPackage rec {
@@ -33,8 +34,26 @@ buildPythonPackage rec {
hash = "sha256-nTMu0zx13XepqQyrJrAvBCjjHdY02tlXlFk2kITHZfI=";
};
# Fixes: TypeError: hue_pal.__init__() got an unexpected keyword argument 'color_space'
#
# In the mizani 0.14.0 release, hue_pal was changed to use HCL color space from HSL (or HSLuv) space.
# The previous functionality is still available with hls_pal.
postPatch = ''
substituteInPlace plotnine/scales/scale_color.py \
--replace-fail \
"from mizani.palettes import hue_pal" \
"from mizani.palettes import hls_pal" \
--replace-fail \
"hue_pal(" \
"hls_pal("
'';
build-system = [ setuptools-scm ];
pythonRelaxDeps = [
"mizani"
];
dependencies = [
matplotlib
mizani
@@ -49,12 +68,9 @@ buildPythonPackage rec {
pytestCheckHook
pytest-cov-stub
scikit-misc
writableTmpDirAsHomeHook
];
preCheck = ''
export HOME=$(mktemp -d)
'';
pythonImportsCheck = [ "plotnine" ];
disabledTests = [