python3Packages.cysignals: 1.11.4 -> 1.12.2

+19 -24
+19 -24
pkgs/development/python-modules/cysignals/default.nix
··· 1 1 { 2 2 lib, 3 - autoreconfHook, 4 - fetchPypi, 3 + fetchFromGitHub, 5 4 buildPythonPackage, 6 5 cython, 7 - pariSupport ? true, 8 - pari, # for interfacing with the PARI/GP signal handler 6 + meson-python, 7 + ninja, 9 8 10 9 # Reverse dependency 11 10 sage, 12 11 }: 13 - 14 - assert pariSupport -> pari != null; 15 12 16 13 buildPythonPackage rec { 17 14 pname = "cysignals"; 18 - version = "1.11.4"; 19 - format = "setuptools"; 15 + version = "1.12.2"; 16 + pyproject = true; 20 17 21 - src = fetchPypi { 22 - inherit pname version; 23 - hash = "sha256-Dx4yHlWgf5AchqNqHkSX9v+d/nAGgdATCjjDbk6yOMM="; 18 + src = fetchFromGitHub { 19 + owner = "sagemath"; 20 + repo = "cysignals"; 21 + tag = version; 22 + hash = "sha256-oRwuAUl1sUUhMJuvLwAbb9tCXXymyKFamQtJRixfQvo="; 24 23 }; 25 24 25 + build-system = [ 26 + cython 27 + meson-python 28 + ninja 29 + ]; 30 + 31 + dontUseCmakeConfigure = true; 32 + enableParallelBuilding = true; 33 + 26 34 # explicit check: 27 35 # build/src/cysignals/implementation.c:27:2: error: #error "cysignals must be compiled without _FORTIFY_SOURCE" 28 36 hardeningDisable = [ "fortify" ]; ··· 35 43 # Make sure cysignals-CSI is in PATH 36 44 export PATH="$out/bin:$PATH" 37 45 ''; 38 - 39 - propagatedBuildInputs = 40 - [ cython ] 41 - ++ lib.optionals pariSupport [ 42 - # When cysignals is built with pari, including cysignals into the 43 - # buildInputs of another python package will cause cython to link against 44 - # pari. 45 - pari 46 - ]; 47 - 48 - nativeBuildInputs = [ autoreconfHook ]; 49 - 50 - enableParallelBuilding = true; 51 46 52 47 passthru.tests = { 53 48 inherit sage;