From 166e16038c91b1783c3dc89a915d50febd0a29a6 Mon Sep 17 00:00:00 2001 From: Mauricio Collares Date: Sun, 2 Nov 2025 10:22:43 -0300 Subject: [PATCH] python313Packages.cypari2: 2.2.2 -> 2.2.4 --- .../python-modules/cypari2/default.nix | 33 ++++++++++++------- 1 file changed, 21 insertions(+), 12 deletions(-) diff --git a/pkgs/development/python-modules/cypari2/default.nix b/pkgs/development/python-modules/cypari2/default.nix index bdf788fbed23..b133b9d144ee 100644 --- a/pkgs/development/python-modules/cypari2/default.nix +++ b/pkgs/development/python-modules/cypari2/default.nix @@ -4,7 +4,9 @@ python, fetchPypi, pari, + pkg-config, gmp, + meson-python, cython, cysignals, @@ -15,26 +17,33 @@ buildPythonPackage rec { pname = "cypari2"; # upgrade may break sage, please test the sage build or ping @timokau on upgrade - version = "2.2.2"; - format = "setuptools"; + version = "2.2.4"; + pyproject = true; src = fetchPypi { inherit pname version; - hash = "sha256-E6M4c16iIcEGj4/EFVYb93fYxoclcCvHSVRyZP0JFyA="; + hash = "sha256-+fDplKmgsGRhkyBBHh2cMDFYhH4FW1gILv2t5ayX9hM="; }; - preBuild = '' - # generate cythonized extensions (auto_paridecl.pxd is crucial) - ${python.pythonOnBuildForHost.interpreter} setup.py build_ext --inplace + preConfigure = '' + substituteInPlace cypari2/meson.build \ + --replace-fail "'cypari2.py'" "'cypari2.pc'" ''; - nativeBuildInputs = [ pari ]; - - buildInputs = [ gmp ]; - - propagatedBuildInputs = [ - cysignals + build-system = [ + meson-python cython + cysignals + ]; + + nativeBuildInputs = [ + pari + pkg-config + ]; + + buildInputs = [ + gmp + pari ]; checkPhase = ''