summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/nbval
diff options
context:
space:
mode:
authorRobin Gloster <mail@glob.in>2021-05-24 09:55:24 -0500
committerRobin Gloster <mail@glob.in>2021-05-24 09:55:24 -0500
commit4bc5fbef9d159e143fb7e2c3231932e6e76f667c (patch)
treee2198f5c552e0667d838b8ec764ddb3a4d8f6dec /pkgs/development/python-modules/nbval
parentjq: fix build with structured-attrs on darwin (diff)
parentMerge pull request #123802 from superherointj/package-virtmanager-bugfix (diff)
downloadnixpkgs-origin/structured-attrs.tar.gz
Merge remote-tracking branch 'upstream/master' into structured-attrsorigin/structured-attrs
Diffstat (limited to 'pkgs/development/python-modules/nbval')
-rw-r--r--pkgs/development/python-modules/nbval/default.nix20
1 files changed, 11 insertions, 9 deletions
diff --git a/pkgs/development/python-modules/nbval/default.nix b/pkgs/development/python-modules/nbval/default.nix
index 704bc21d7e1a..b9a336f7fbe9 100644
--- a/pkgs/development/python-modules/nbval/default.nix
+++ b/pkgs/development/python-modules/nbval/default.nix
@@ -5,6 +5,7 @@
, ipykernel
, jupyter_client
, nbformat
+, pytestCheckHook
, pytest
, six
, glibcLocales
@@ -23,7 +24,7 @@ buildPythonPackage rec {
};
checkInputs = [
- pytest
+ pytestCheckHook
matplotlib
sympy
pytestcov
@@ -40,14 +41,15 @@ buildPythonPackage rec {
six
];
- # Set HOME so that matplotlib doesn't try to use
- # /homeless-shelter/.config/matplotlib, otherwise some of the tests fail for
- # having an unexpected warning on stderr produced by matplotlib.
- # Ignore impure tests.
- checkPhase = ''
- export HOME=$(mktemp -d)
- pytest tests --ignore tests/test_timeouts.py
- '';
+ pytestFlagsArray = [
+ "tests"
+ # These are the main tests but they're fragile so skip them. They error
+ # whenever matplotlib outputs any unexpected warnings, e.g. deprecation
+ # warnings.
+ "--ignore=tests/test_unit_tests_in_notebooks.py"
+ # Impure
+ "--ignore=tests/test_timeouts.py"
+ ];
# Some of the tests use localhost networking.
__darwinAllowLocalNetworking = true;