From bba0d2bfcc52edbb75f4f9057280d11eb2b693d5 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sun, 19 Jan 2025 21:14:56 +0100 Subject: [PATCH] python3Packages.cysignals: 1.11.4 -> 1.12.2 --- .../python-modules/cysignals/default.nix | 43 ++++++++----------- 1 file changed, 19 insertions(+), 24 deletions(-) diff --git a/pkgs/development/python-modules/cysignals/default.nix b/pkgs/development/python-modules/cysignals/default.nix index 9e90eaf38f19..289e252508a9 100644 --- a/pkgs/development/python-modules/cysignals/default.nix +++ b/pkgs/development/python-modules/cysignals/default.nix @@ -1,28 +1,36 @@ { lib, - autoreconfHook, - fetchPypi, + fetchFromGitHub, buildPythonPackage, cython, - pariSupport ? true, - pari, # for interfacing with the PARI/GP signal handler + meson-python, + ninja, # Reverse dependency sage, }: -assert pariSupport -> pari != null; - buildPythonPackage rec { pname = "cysignals"; - version = "1.11.4"; - format = "setuptools"; + version = "1.12.2"; + pyproject = true; - src = fetchPypi { - inherit pname version; - hash = "sha256-Dx4yHlWgf5AchqNqHkSX9v+d/nAGgdATCjjDbk6yOMM="; + src = fetchFromGitHub { + owner = "sagemath"; + repo = "cysignals"; + tag = version; + hash = "sha256-oRwuAUl1sUUhMJuvLwAbb9tCXXymyKFamQtJRixfQvo="; }; + build-system = [ + cython + meson-python + ninja + ]; + + dontUseCmakeConfigure = true; + enableParallelBuilding = true; + # explicit check: # build/src/cysignals/implementation.c:27:2: error: #error "cysignals must be compiled without _FORTIFY_SOURCE" hardeningDisable = [ "fortify" ]; @@ -36,19 +44,6 @@ buildPythonPackage rec { export PATH="$out/bin:$PATH" ''; - propagatedBuildInputs = - [ cython ] - ++ lib.optionals pariSupport [ - # When cysignals is built with pari, including cysignals into the - # buildInputs of another python package will cause cython to link against - # pari. - pari - ]; - - nativeBuildInputs = [ autoreconfHook ]; - - enableParallelBuilding = true; - passthru.tests = { inherit sage; };