Skip to content

Commit 6b31cde

Browse files
committed
python312Packages.corner: fix build
1 parent 62b9a01 commit 6b31cde

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

pkgs/development/python-modules/corner/default.nix

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
{
22
lib,
33
buildPythonPackage,
4-
pythonOlder,
54
fetchFromGitHub,
65

76
# build-system
8-
setuptools,
9-
setuptools-scm,
7+
hatch-vcs,
8+
hatchling,
109

1110
# dependencies
1211
matplotlib,
@@ -21,7 +20,7 @@
2120
pytest,
2221
scipy,
2322

24-
# checks
23+
# tests
2524
pytestCheckHook,
2625
corner,
2726
}:
@@ -31,8 +30,6 @@ buildPythonPackage rec {
3130
version = "2.2.3";
3231
pyproject = true;
3332

34-
disable = pythonOlder "3.9";
35-
3633
src = fetchFromGitHub {
3734
owner = "dfm";
3835
repo = "corner.py";
@@ -41,8 +38,8 @@ buildPythonPackage rec {
4138
};
4239

4340
build-system = [
44-
setuptools
45-
setuptools-scm
41+
hatch-vcs
42+
hatchling
4643
];
4744

4845
dependencies = [ matplotlib ];
@@ -70,6 +67,7 @@ buildPythonPackage rec {
7067

7168
# matplotlib.testing.exceptions.ImageComparisonFailure: images not close
7269
disabledTests = [
70+
"test_1d_fig_argument"
7371
"test_arviz"
7472
"test_basic"
7573
"test_bins"
@@ -104,7 +102,7 @@ buildPythonPackage rec {
104102
meta = {
105103
description = "Make some beautiful corner plots";
106104
homepage = "https://github.com/dfm/corner.py";
107-
changelog = "https://github.com/dfm/corner.py/releases/tag/${src.tag}";
105+
changelog = "https://github.com/dfm/corner.py/releases/tag/v${version}";
108106
license = lib.licenses.bsd2;
109107
maintainers = with lib.maintainers; [ GaetanLepage ];
110108
};

0 commit comments

Comments
 (0)