python3Packages.corner: 2.2.3 -> 2.3.0

Diff: https://github.com/dfm/corner.py/compare/v2.2.3...v2.3.0

Changelog: https://github.com/dfm/corner.py/releases/tag/v2.3.0
This commit is contained in:
Gaetan Lepage
2026-07-10 22:47:53 +00:00
parent 309eeecb42
commit e409745df7

View File

@@ -2,7 +2,6 @@
lib,
buildPythonPackage,
fetchFromGitHub,
writableTmpDirAsHomeHook,
# build-system
hatch-vcs,
@@ -13,6 +12,7 @@
# optional-dependencies
arviz,
arviz-base,
ipython,
myst-nb,
pandoc,
@@ -23,28 +23,20 @@
# tests
pytestCheckHook,
corner,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "corner";
version = "2.2.3";
version = "2.3.0";
pyproject = true;
src = fetchFromGitHub {
owner = "dfm";
repo = "corner.py";
tag = "v${version}";
hash = "sha256-gK2yylteI3VLVJ0p7NB7bR7cirCo2BvFKnYIH3kfyh4=";
tag = "v${finalAttrs.version}";
hash = "sha256-H59IVXKPT4CLApn4kUuSuiYA9EWdOaH88Rd4YXf0VlQ=";
};
nativeBuildInputs = [
# During `pythonImportsCheck`, `corner` imports `arviz` which wants to write a stamp file to the
# homedir. It then needs to be writable.
# https://github.com/arviz-devs/arviz/commit/4db612908f588d89bb5bfb6b83a08ada3d54fd02
writableTmpDirAsHomeHook
];
build-system = [
hatch-vcs
hatchling
@@ -53,9 +45,13 @@ buildPythonPackage rec {
dependencies = [ matplotlib ];
optional-dependencies = {
arviz = [ arviz ];
arviz = [
arviz
arviz-base
];
docs = [
arviz
arviz-base
ipython
myst-nb
pandoc
@@ -71,10 +67,14 @@ buildPythonPackage rec {
pythonImportsCheck = [ "corner" ];
nativeCheckInputs = [ pytestCheckHook ] ++ corner.optional-dependencies.test;
nativeCheckInputs = [
arviz
pytestCheckHook
scipy
];
# matplotlib.testing.exceptions.ImageComparisonFailure: images not close
disabledTests = [
# matplotlib.testing.exceptions.ImageComparisonFailure: images not close
"test_1d_fig_argument"
"test_arviz"
"test_basic"
@@ -110,8 +110,8 @@ buildPythonPackage rec {
meta = {
description = "Make some beautiful corner plots";
homepage = "https://github.com/dfm/corner.py";
changelog = "https://github.com/dfm/corner.py/releases/tag/v${version}";
changelog = "https://github.com/dfm/corner.py/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.bsd2;
maintainers = with lib.maintainers; [ GaetanLepage ];
};
}
})