@@ -11,7 +11,6 @@
1111, glibcLocales
1212, matplotlib
1313, sympy
14−, pytest-cov
1514}:
1615
1716buildPythonPackage rec {
@@ -23,15 +22,10 @@ buildPythonPackage rec {
2322 sha256 = "cfefcd2ef66ee2d337d0b252c6bcec4023384eb32e8b9e5fcc3ac80ab8cd7d40";
2423 };
2524
26− checkInputs = [
27− pytestCheckHook
28− matplotlib
29− sympy
30− pytest-cov
25+ buildInputs = [
26+ glibcLocales
3127 ];
3228
33− buildInputs = [ glibcLocales ];
34−
3529 propagatedBuildInputs = [
3630 coverage
3731 ipykernel
@@ -41,23 +35,35 @@ buildPythonPackage rec {
4135 six
4236 ];
4337
44− pytestFlagsArray = [
45− "tests"
38+ checkInputs = [
39+ pytestCheckHook
40+ matplotlib
41+ sympy
42+ ];
43+
44+ disabledTestPaths = [
45+ "tests/test_ignore.py"
4646 # These are the main tests but they're fragile so skip them. They error
4747 # whenever matplotlib outputs any unexpected warnings, e.g. deprecation
4848 # warnings.
49− "--ignore=tests/test_unit_tests_in_notebooks.py"
49+ "tests/test_unit_tests_in_notebooks.py"
5050 # Impure
51− "--ignore=tests/test_timeouts.py"
51+ "tests/test_timeouts.py"
52+ # No value for us
53+ "tests/test_coverage.py"
5254 ];
5355
5456 # Some of the tests use localhost networking.
5557 __darwinAllowLocalNetworking = true;
5658
59+ pythonImportsCheck = [
60+ "nbval"
61+ ];
62+
5763 meta = with lib; {
5864 description = "A py.test plugin to validate Jupyter notebooks";
5965 homepage = "https://github.com/computationalmodelling/nbval";
6066 license = licenses.bsd3;
61− maintainers = [ maintainers.costrouc ];
67+ maintainers = with maintainers; [ costrouc ];
6268 };
6369}