python3Packages.altair: fix tests

This commit is contained in:
Jonathan Ringer 2022-02-06 10:45:29 -08:00
parent a47d80b669
commit e12328c7b7
No known key found for this signature in database
GPG key ID: 5C841D3CFDFEC4E0

View file

@ -6,7 +6,7 @@
, jsonschema
, numpy
, pandas
, pytest
, pytestCheckHook
, pythonOlder
, recommonmark
, six
@ -39,7 +39,7 @@ buildPythonPackage rec {
checkInputs = [
glibcLocales
ipython
pytest
pytestCheckHook
recommonmark
sphinx
vega_datasets
@ -47,11 +47,9 @@ buildPythonPackage rec {
pythonImportsCheck = [ "altair" ];
checkPhase = ''
export LANG=en_US.UTF-8
# histogram_responsive.py attempt network access, and cannot be disabled through pytest flags
rm altair/examples/histogram_responsive.py
pytest --doctest-modules altair
# avoid examples directory, which fetches web resources
preCheck = ''
cd altair/tests
'';
meta = with lib; {