fplll: 5.2.1 -> 5.3.0, python.pkgs.fpylll: 0.4.1dev -> 0.5.0dev

The two packages need to be updated together, since fpylll 0.4.1
requires the old fplll version and fpylll 0.5.0 requires the new one.
This commit is contained in:
Timo Kaufmann 2019-12-02 11:41:59 +01:00
parent d69b099f28
commit da7ca3fa87
2 changed files with 19 additions and 5 deletions

View File

@ -1,5 +1,6 @@
{ stdenv { stdenv
, fetchFromGitHub , fetchFromGitHub
, fetchpatch
, gettext , gettext
, autoreconfHook , autoreconfHook
, gmp , gmp
@ -8,15 +9,24 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "fplll"; pname = "fplll";
version = "5.2.1"; version = "5.3.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "fplll"; owner = "fplll";
repo = "fplll"; repo = "fplll";
rev = version; rev = version;
sha256 = "015qmrd7nfaysbv1hbwiprz9g6hnww1y1z1xw8f43ysb7k1b5nbg"; sha256 = "0wxa4xs7as7y47h7i6prmk5r0srabdvrlkvza3j50pixir5swgvh";
}; };
patches = [
# https://github.com/fplll/fpylll/issues/161
(fetchpatch {
name = "fix-out-of-bounds-access.patch";
url = "https://github.com/fplll/fplll/pull/398/commits/f68e257228bf073ef380f996326d02197ce7b0e4.patch";
sha256 = "1rapkcf389lf579va6kbnvhzyv36n4l4d9n0vg2zxprvql8wvm7m";
})
];
nativeBuildInputs = [ nativeBuildInputs = [
gettext gettext
autoreconfHook autoreconfHook

View File

@ -14,13 +14,13 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "fpylll"; pname = "fpylll";
version = "0.4.1dev"; version = "0.5.0dev";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "fplll"; owner = "fplll";
repo = "fpylll"; repo = "fpylll";
rev = version; rev = version;
sha256 = "01x2sqdv0sbjj4g4waj0hj4rcn4bq7h17442xaqwbznym9azmn9w"; sha256 = "091zqgsqd5cqma1hvimkq5xpr9f1jw80v9m2fr6k9hvssqjzgnab";
}; };
buildInputs = [ buildInputs = [
@ -45,7 +45,11 @@ buildPythonPackage rec {
]; ];
checkPhase = '' checkPhase = ''
py.test # Since upstream introduced --doctest-modules in
# https://github.com/fplll/fpylll/commit/9732fdb40cf1bd43ad1f60762ec0a8401743fc79,
# it is necessary to ignore import mismatches. Not sure why, but the files
# should be identical anyway.
PY_IGNORE_IMPORTMISMATCH=1 pytest
''; '';
meta = { meta = {