mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 08:04:14 +00:00
faf9a73e2f
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/eclib/versions Relevant sage upstream ticket: https://trac.sagemath.org/ticket/28472
48 lines
1.2 KiB
Nix
48 lines
1.2 KiB
Nix
{ stdenv
|
|
, fetchFromGitHub
|
|
, autoreconfHook
|
|
, pari
|
|
, ntl
|
|
, gmp
|
|
# "FLINT is optional and only used for one part of sparse matrix reduction,
|
|
# which is used in the modular symbol code but not mwrank or other elliptic
|
|
# curve programs." -- https://github.com/JohnCremona/eclib/blob/master/README
|
|
, withFlint ? false, flint ? null
|
|
}:
|
|
|
|
assert withFlint -> flint != null;
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "eclib";
|
|
version = "20190909"; # upgrade might break the sage interface
|
|
# sage tests to run:
|
|
# src/sage/interfaces/mwrank.py
|
|
# src/sage/libs/eclib
|
|
# ping @timokau for more info
|
|
src = fetchFromGitHub {
|
|
owner = "JohnCremona";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "0y1vdi4120gdw56gg2dn3wh625yr9wpyk3wpbsd25w4lv83qq5da";
|
|
};
|
|
buildInputs = [
|
|
pari
|
|
ntl
|
|
gmp
|
|
] ++ stdenv.lib.optionals withFlint [
|
|
flint
|
|
];
|
|
nativeBuildInputs = [
|
|
autoreconfHook
|
|
];
|
|
doCheck = true;
|
|
meta = with stdenv.lib; {
|
|
inherit version;
|
|
description = ''Elliptic curve tools'';
|
|
homepage = https://github.com/JohnCremona/eclib;
|
|
license = licenses.gpl2Plus;
|
|
maintainers = with maintainers; [ raskin timokau ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|