From 6b31cde73764c68c3a95822a8ba23cc0f220f4f9 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Thu, 6 Feb 2025 17:19:00 +0100 Subject: [PATCH] python312Packages.corner: fix build --- .../python-modules/corner/default.nix | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/pkgs/development/python-modules/corner/default.nix b/pkgs/development/python-modules/corner/default.nix index 3d15c827204f..fa6618079ad2 100644 --- a/pkgs/development/python-modules/corner/default.nix +++ b/pkgs/development/python-modules/corner/default.nix @@ -1,12 +1,11 @@ { lib, buildPythonPackage, - pythonOlder, fetchFromGitHub, # build-system - setuptools, - setuptools-scm, + hatch-vcs, + hatchling, # dependencies matplotlib, @@ -21,7 +20,7 @@ pytest, scipy, - # checks + # tests pytestCheckHook, corner, }: @@ -31,8 +30,6 @@ buildPythonPackage rec { version = "2.2.3"; pyproject = true; - disable = pythonOlder "3.9"; - src = fetchFromGitHub { owner = "dfm"; repo = "corner.py"; @@ -41,8 +38,8 @@ buildPythonPackage rec { }; build-system = [ - setuptools - setuptools-scm + hatch-vcs + hatchling ]; dependencies = [ matplotlib ]; @@ -70,6 +67,7 @@ buildPythonPackage rec { # matplotlib.testing.exceptions.ImageComparisonFailure: images not close disabledTests = [ + "test_1d_fig_argument" "test_arviz" "test_basic" "test_bins" @@ -104,7 +102,7 @@ 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/${src.tag}"; + changelog = "https://github.com/dfm/corner.py/releases/tag/v${version}"; license = lib.licenses.bsd2; maintainers = with lib.maintainers; [ GaetanLepage ]; };