Merge pull request #54690 from timokau/sage-8.7

sage: 8.6 -> 8.7
This commit is contained in:
Timo Kaufmann
2019-04-18 22:50:45 +02:00
committed by GitHub
13 changed files with 243 additions and 176 deletions

View File

@@ -31,12 +31,13 @@ buildPythonPackage rec {
export PATH="$out/bin:$PATH"
'';
buildInputs = lib.optionals pariSupport [
pari
];
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
];
enableParallelBuilding = true;

View File

@@ -1,8 +1,15 @@
{ stdenv, buildPythonPackage, fetchurl, isPyPy, gmp, mpfr, libmpc } :
{ stdenv
, buildPythonPackage
, fetchFromGitHub
, isPyPy
, gmp
, mpfr
, libmpc
}:
let
pname = "gmpy2";
version = "2.0.8";
version = "2.1a4";
in
buildPythonPackage {
@@ -10,9 +17,11 @@ buildPythonPackage {
disabled = isPyPy;
src = fetchurl {
url = "mirror://pypi/g/gmpy2/${pname}-${version}.zip";
sha256 = "0grx6zmi99iaslm07w6c2aqpnmbkgrxcqjrqpfq223xri0r3w8yx";
src = fetchFromGitHub {
owner = "aleaxit";
repo = "gmpy";
rev = "gmpy2-${version}";
sha256 = "1wg4w4q2l7n26ksrdh4rwqmifgfm32n7x29cgdvmmbv5lmilb5hz";
};
buildInputs = [ gmp mpfr libmpc ];

View File

@@ -0,0 +1,64 @@
{ lib
, python
, fetchPypi
, buildPythonPackage
, gmp
, mpfr
, libmpc
, ppl
, pari
, cython
, cysignals
, gmpy2
, sphinx
}:
buildPythonPackage rec {
pname = "pplpy";
version = "0.8.4";
src = fetchPypi {
inherit pname version;
sha256 = "0dk8l5r3f2jbkkasddvxwvhlq35pjsiirh801lrapv8lb16r2qmr";
};
buildInputs = [
gmp
mpfr
libmpc
ppl
];
nativeBuildInputs = [
sphinx # docbuild, called by make
];
propagatedBuildInputs = [
cython
cysignals
gmpy2
];
outputs = [ "out" "doc" ];
postBuild = ''
# Find the build result in order to put it into PYTHONPATH. The doc
# build needs to import pplpy.
build_result="$PWD/$( find build/ -type d -name 'lib.*' | head -n1 )"
echo "Building documentation"
PYTHONPATH="$build_result:$PYTHONPATH" make -C docs html
'';
postInstall = ''
mkdir -p "$doc/share/doc"
mv docs/build/html "$doc/share/doc/pplpy"
'';
meta = with lib; {
description = "A Python wrapper for ppl";
homepage = https://gitlab.com/videlec/pplpy;
maintainers = with maintainers; [ timokau ];
license = licenses.gpl3;
};
}