Unverified Commit 975ac0ab authored by Mauricio Collares's avatar Mauricio Collares Committed by GitHub
Browse files

pari: 2.15.5 -> 2.17.1 (#348442)

parents 762a3988 4b06c382
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -14,7 +14,7 @@ assert withThread -> libpthreadstubs != null;

stdenv.mkDerivation rec {
  pname = "pari";
  version = "2.15.5";
  version = "2.17.1";

  src = fetchurl {
    urls = [
@@ -22,7 +22,7 @@ stdenv.mkDerivation rec {
      # old versions are at the url below
      "https://pari.math.u-bordeaux.fr/pub/pari/OLD/${lib.versions.majorMinor version}/${pname}-${version}.tar.gz"
    ];
    hash = "sha256-Dv3adRXZ2VT2MyTDSzTFYOYPc6gcOSSnEmCizJHV+YE=";
    hash = "sha256-Z7pvMHEjNyUlhUHk8XS177xkxlrlEVut6e38RfH95dw=";
  };

  buildInputs = [
+7 −0
Original line number Diff line number Diff line
@@ -82,6 +82,13 @@ stdenv.mkDerivation rec {
      url = "https://github.com/sagemath/sage/commit/f10a6d04599795732c1d99e2da0a4839ccdcb4f5.diff";
      hash = "sha256-xB0xg8dGLnSMdFK3/B5hkI9yzI5N3lUMhPZ89lDsp3s=";
    })

    # https://github.com/sagemath/sage/pull/38749, to land in 10.6.beta6
    (fetchpatch {
      name = "pari-2.17.1-update.patch";
      url = "https://github.com/sagemath/sage/compare/10.6.beta2...26f411e5939718d4439325ff669635e5a72d50e5.diff";
      hash = "sha256-Z4JwCuUDpqktAzNtVKRUbrJEh7TmCtFI7PJnOrcEbr4=";
    })
  ];

  patches = nixPatches ++ bugfixPatches ++ packageUpgradePatches;
+9 −6
Original line number Diff line number Diff line
{
  lib,
  autoreconfHook,
  fetchPypi,
  buildPythonPackage,
  meson-python,
  cython,
  pariSupport ? true,
  pari, # for interfacing with the PARI/GP signal handler
@@ -15,14 +15,19 @@ assert pariSupport -> pari != null;

buildPythonPackage rec {
  pname = "cysignals";
  version = "1.11.4";
  format = "setuptools";
  version = "1.12.3";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-Dx4yHlWgf5AchqNqHkSX9v+d/nAGgdATCjjDbk6yOMM=";
    hash = "sha256-ifdibb8p21qz1u/xWomXj061GTwyDpCZvMFX2s3v0es=";
  };

  build-system = [
    cython
    meson-python
  ];

  # explicit check:
  # build/src/cysignals/implementation.c:27:2: error: #error "cysignals must be compiled without _FORTIFY_SOURCE"
  hardeningDisable = [ "fortify" ];
@@ -45,8 +50,6 @@ buildPythonPackage rec {
      pari
    ];

  nativeBuildInputs = [ autoreconfHook ];

  enableParallelBuilding = true;

  passthru.tests = {