mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 15:33:13 +00:00
sage: Add as passthru.tests to critical dependencies
This commit is contained in:
parent
48833103ac
commit
de1618552c
@ -1,6 +1,9 @@
|
||||
{ lib, stdenv
|
||||
, fetchFromBitbucket
|
||||
, autoreconfHook
|
||||
|
||||
# Reverse dependency
|
||||
, sage
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
@ -20,6 +23,8 @@ stdenv.mkDerivation rec {
|
||||
autoreconfHook
|
||||
];
|
||||
|
||||
passthru.tests = { inherit sage; };
|
||||
|
||||
meta = with lib; {
|
||||
description = "Littlewood-Richardson calculator";
|
||||
homepage = "http://math.rutgers.edu/~asbuch/lrcalc/";
|
||||
|
@ -7,6 +7,9 @@
|
||||
, gmp
|
||||
, cython
|
||||
, cysignals
|
||||
|
||||
# Reverse dependency
|
||||
, sage
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
@ -53,6 +56,8 @@ buildPythonPackage rec {
|
||||
make check
|
||||
'';
|
||||
|
||||
passthru.tests = { inherit sage; };
|
||||
|
||||
meta = with lib; {
|
||||
description = "Cython bindings for PARI";
|
||||
license = licenses.gpl2Plus;
|
||||
|
@ -4,6 +4,9 @@
|
||||
, buildPythonPackage
|
||||
, cython
|
||||
, pariSupport ? true, pari # for interfacing with the PARI/GP signal handler
|
||||
|
||||
# Reverse dependency
|
||||
, sage
|
||||
}:
|
||||
|
||||
assert pariSupport -> pari != null;
|
||||
@ -46,6 +49,8 @@ buildPythonPackage rec {
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
passthru.tests = { inherit sage; };
|
||||
|
||||
meta = with lib; {
|
||||
description = "Interrupt and signal handling for Cython";
|
||||
mainProgram = "cysignals-CSI";
|
||||
|
@ -8,6 +8,9 @@
|
||||
, gdb
|
||||
, numpy
|
||||
, ncurses
|
||||
|
||||
# Reverse dependency
|
||||
, sage
|
||||
}:
|
||||
|
||||
let
|
||||
@ -57,6 +60,8 @@ in buildPythonPackage rec {
|
||||
doCheck = false;
|
||||
# doCheck = !stdenv.isDarwin;
|
||||
|
||||
passthru.tests = { inherit sage; };
|
||||
|
||||
# force regeneration of generated code in source distributions
|
||||
# https://github.com/cython/cython/issues/5089
|
||||
setupHook = ./setup-hook.sh;
|
||||
|
@ -15,6 +15,9 @@
|
||||
, fplll
|
||||
, numpy
|
||||
|
||||
# Reverse dependency
|
||||
, sage
|
||||
|
||||
# tests
|
||||
, pytestCheckHook
|
||||
}:
|
||||
@ -72,6 +75,8 @@ buildPythonPackage rec {
|
||||
export PY_IGNORE_IMPORTMISMATCH=1
|
||||
'';
|
||||
|
||||
passthru.tests = { inherit sage; };
|
||||
|
||||
meta = with lib; {
|
||||
description = "A Python interface for fplll";
|
||||
changelog = "https://github.com/fplll/fpylll/releases/tag/${version}";
|
||||
|
@ -5,6 +5,9 @@
|
||||
, gmp
|
||||
, mpfr
|
||||
, libmpc
|
||||
|
||||
# Reverse dependency
|
||||
, sage
|
||||
}:
|
||||
|
||||
let
|
||||
@ -29,6 +32,8 @@ buildPythonPackage {
|
||||
|
||||
pythonImportsCheck = [ "gmpy2" ];
|
||||
|
||||
passthru.tests = { inherit sage; };
|
||||
|
||||
meta = with lib; {
|
||||
description = "GMP/MPIR, MPFR, and MPC interface to Python 2.6+ and 3.x";
|
||||
homepage = "https://github.com/aleaxit/gmpy/";
|
||||
|
@ -7,6 +7,9 @@
|
||||
, typing-extensions
|
||||
, toml
|
||||
, zipp
|
||||
|
||||
# Reverse dependency
|
||||
, sage
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
@ -41,6 +44,8 @@ buildPythonPackage rec {
|
||||
"importlib_metadata"
|
||||
];
|
||||
|
||||
passthru.tests = { inherit sage; };
|
||||
|
||||
meta = with lib; {
|
||||
description = "Read metadata from Python packages";
|
||||
homepage = "https://importlib-metadata.readthedocs.io/";
|
||||
|
@ -10,6 +10,9 @@
|
||||
# dependencies
|
||||
, importlib-metadata
|
||||
|
||||
# Reverse dependency
|
||||
, sage
|
||||
|
||||
# tests
|
||||
, jaraco-collections
|
||||
, pytestCheckHook
|
||||
@ -46,6 +49,8 @@ buildPythonPackage rec {
|
||||
"importlib_resources"
|
||||
];
|
||||
|
||||
passthru.tests = { inherit sage; };
|
||||
|
||||
meta = with lib; {
|
||||
description = "Read resources from Python packages";
|
||||
homepage = "https://importlib-resources.readthedocs.io/";
|
||||
|
@ -18,6 +18,9 @@
|
||||
, pyzmq
|
||||
, tornado
|
||||
, traitlets
|
||||
|
||||
# Reverse dependency
|
||||
, sage
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
@ -63,6 +66,7 @@ buildPythonPackage rec {
|
||||
|
||||
passthru.tests = {
|
||||
pytest = callPackage ./tests.nix { };
|
||||
inherit sage;
|
||||
};
|
||||
|
||||
meta = {
|
||||
|
@ -29,6 +29,9 @@
|
||||
, notebook
|
||||
, qtconsole
|
||||
|
||||
# Reverse dependency
|
||||
, sage
|
||||
|
||||
# Test dependencies
|
||||
, pickleshare
|
||||
, pytest-asyncio
|
||||
@ -106,6 +109,8 @@ buildPythonPackage rec {
|
||||
"test_clipboard_get"
|
||||
];
|
||||
|
||||
passthru.tests = { inherit sage; };
|
||||
|
||||
meta = with lib; {
|
||||
description = "IPython: Productive Interactive Computing";
|
||||
downloadPage = "https://github.com/ipython/ipython/";
|
||||
|
@ -12,6 +12,9 @@
|
||||
, setuptools
|
||||
, sphinxcontrib-log-cabinet
|
||||
, sphinx-issues
|
||||
|
||||
# Reverse dependency
|
||||
, sage
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
@ -76,6 +79,8 @@ buildPythonPackage rec {
|
||||
inherit meta;
|
||||
};
|
||||
|
||||
passthru.tests = { inherit sage; };
|
||||
|
||||
meta = with lib; {
|
||||
changelog = "https://github.com/pallets/jinja/blob/${version}/CHANGES.rst";
|
||||
description = "Very fast and expressive template engine";
|
||||
|
@ -7,6 +7,9 @@
|
||||
, traitlets
|
||||
, pip
|
||||
, pytestCheckHook
|
||||
|
||||
# Reverse dependency
|
||||
, sage
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
@ -61,6 +64,8 @@ buildPythonPackage rec {
|
||||
|
||||
pythonImportsCheck = [ "jupyter_core" ];
|
||||
|
||||
passthru.tests = { inherit sage; };
|
||||
|
||||
meta = with lib; {
|
||||
description = "Base package on which Jupyter projects rely";
|
||||
homepage = "https://jupyter.org/";
|
||||
|
@ -69,6 +69,9 @@
|
||||
# required for headless detection
|
||||
, libX11
|
||||
, wayland
|
||||
|
||||
# Reverse dependency
|
||||
, sage
|
||||
}:
|
||||
|
||||
let
|
||||
@ -183,6 +186,8 @@ buildPythonPackage rec {
|
||||
};
|
||||
};
|
||||
|
||||
passthru.tests = { inherit sage; };
|
||||
|
||||
env.MPLSETUPCFG = writeText "mplsetup.cfg" (lib.generators.toINI {} passthru.config);
|
||||
|
||||
# Encountering a ModuleNotFoundError, as describved and investigated at:
|
||||
|
@ -2,6 +2,9 @@
|
||||
, fetchPypi
|
||||
, buildPythonPackage
|
||||
, cython
|
||||
|
||||
# Reverse dependency
|
||||
, sage
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
@ -19,6 +22,8 @@ buildPythonPackage rec {
|
||||
|
||||
pythonImportsCheck = [ "memory_allocator" ];
|
||||
|
||||
passthru.tests = { inherit sage; };
|
||||
|
||||
meta = with lib; {
|
||||
description = "An extension class to allocate memory easily with cython";
|
||||
homepage = "https://github.com/sagemath/memory_allocator/";
|
||||
|
@ -5,6 +5,9 @@
|
||||
, isPyPy
|
||||
, setuptools
|
||||
, pytestCheckHook
|
||||
|
||||
# Reverse dependency
|
||||
, sage
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
@ -29,6 +32,8 @@ buildPythonPackage rec {
|
||||
];
|
||||
};
|
||||
|
||||
passthru.tests = { inherit sage; };
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
@ -19,6 +19,9 @@
|
||||
# tests
|
||||
, pytest-xdist
|
||||
, pytestCheckHook
|
||||
|
||||
# reverse dependency
|
||||
, sage
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
@ -53,6 +56,8 @@ buildPythonPackage rec {
|
||||
];
|
||||
};
|
||||
|
||||
passthru.tests = { inherit sage; };
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytest-xdist
|
||||
pytestCheckHook
|
||||
|
@ -19,6 +19,9 @@
|
||||
, blas
|
||||
, lapack
|
||||
|
||||
# Reverse dependency
|
||||
, sage
|
||||
|
||||
# tests
|
||||
, hypothesis
|
||||
, pytest-xdist
|
||||
@ -177,6 +180,7 @@ in buildPythonPackage rec {
|
||||
blas = blas.provider;
|
||||
blasImplementation = blas.implementation;
|
||||
inherit cfg;
|
||||
tests = { inherit sage; };
|
||||
};
|
||||
|
||||
# Disable test
|
||||
|
@ -3,6 +3,9 @@
|
||||
, fetchPypi
|
||||
, setuptools
|
||||
, ptyprocess
|
||||
|
||||
# Reverse dependency
|
||||
, sage
|
||||
}:
|
||||
|
||||
buildPythonPackage (rec {
|
||||
@ -24,6 +27,8 @@ buildPythonPackage (rec {
|
||||
|
||||
propagatedBuildInputs = [ ptyprocess ];
|
||||
|
||||
passthru.tests = { inherit sage; };
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "http://www.noah.org/wiki/Pexpect";
|
||||
description = "Automate interactive console applications such as ssh, ftp, etc";
|
||||
|
@ -7,7 +7,7 @@
|
||||
, defusedxml, olefile, freetype, libjpeg, zlib, libtiff, libwebp, libxcrypt, tcl, lcms2, tk, libX11
|
||||
, libxcb, openjpeg, libimagequant, numpy, pytestCheckHook, setuptools
|
||||
# for passthru.tests
|
||||
, imageio, matplotlib, pilkit, pydicom, reportlab
|
||||
, imageio, matplotlib, pilkit, pydicom, reportlab, sage
|
||||
}@args:
|
||||
|
||||
import ./generic.nix (rec {
|
||||
@ -24,7 +24,7 @@ import ./generic.nix (rec {
|
||||
};
|
||||
|
||||
passthru.tests = {
|
||||
inherit imageio matplotlib pilkit pydicom reportlab;
|
||||
inherit imageio matplotlib pilkit pydicom reportlab sage;
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
|
@ -9,6 +9,9 @@
|
||||
, cysignals
|
||||
, gmpy2
|
||||
, sphinx
|
||||
|
||||
# Reverse dependency
|
||||
, sage
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
@ -54,6 +57,8 @@ buildPythonPackage rec {
|
||||
mv docs/build/html "$doc/share/doc/pplpy"
|
||||
'';
|
||||
|
||||
passthru.tests = { inherit sage; };
|
||||
|
||||
meta = with lib; {
|
||||
description = "A Python wrapper for ppl";
|
||||
homepage = "https://gitlab.com/videlec/pplpy";
|
||||
|
@ -4,6 +4,9 @@
|
||||
, primecount
|
||||
, cython
|
||||
, cysignals
|
||||
|
||||
# Reverse dependency
|
||||
, sage
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
@ -25,6 +28,8 @@ buildPythonPackage rec {
|
||||
|
||||
pythonImportsCheck = [ "primecountpy" ];
|
||||
|
||||
passthru.tests = { inherit sage; };
|
||||
|
||||
meta = with lib; {
|
||||
description = "Cython interface for C++ primecount library";
|
||||
homepage = "https://github.com/dimpase/primecountpy/";
|
||||
|
@ -25,6 +25,9 @@
|
||||
, xsimd
|
||||
, blas
|
||||
, lapack
|
||||
|
||||
# Reverse dependency
|
||||
, sage
|
||||
}:
|
||||
|
||||
let
|
||||
@ -193,6 +196,7 @@ in buildPythonPackage {
|
||||
# Pass it the names of the datasets to update their hashes
|
||||
++ (builtins.attrNames datasetsHashes)
|
||||
;
|
||||
tests = { inherit sage; };
|
||||
};
|
||||
|
||||
SCIPY_USE_G77_ABI_WRAPPER = 1;
|
||||
|
@ -3,6 +3,9 @@
|
||||
, fetchPypi
|
||||
, glibcLocales
|
||||
, mpmath
|
||||
|
||||
# Reverse dependency
|
||||
, sage
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
@ -27,6 +30,8 @@ buildPythonPackage rec {
|
||||
export LANG="en_US.UTF-8"
|
||||
'';
|
||||
|
||||
passthru.tests = { inherit sage; };
|
||||
|
||||
meta = with lib; {
|
||||
description = "A Python library for symbolic mathematics";
|
||||
mainProgram = "isympy";
|
||||
|
Loading…
Reference in New Issue
Block a user