python3Packages.intake: fix tests

This commit is contained in:
Jonathan Ringer 2020-10-04 13:26:18 -07:00 committed by Jon
parent b25c404b09
commit 7c841a294c

View file

@ -6,19 +6,19 @@
, holoviews , holoviews
, hvplot , hvplot
, jinja2 , jinja2
, msgpack-numpy
, msgpack , msgpack
, msgpack-numpy
, numpy , numpy
, pandas , pandas
, panel , panel
, pyarrow , pyarrow
, pytestCheckHook
, pythonOlder
, python-snappy , python-snappy
, requests , requests
, ruamel_yaml , ruamel_yaml
, six , six
, tornado , tornado
, pytest
, pythonOlder
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@ -32,7 +32,6 @@ buildPythonPackage rec {
sha256 = "0c284abeb74927a7366dcab6cefc010c4d050365b8af61c37326a2473a490a4e"; sha256 = "0c284abeb74927a7366dcab6cefc010c4d050365b8af61c37326a2473a490a4e";
}; };
checkInputs = [ pyarrow pytest ];
propagatedBuildInputs = [ propagatedBuildInputs = [
appdirs appdirs
dask dask
@ -51,6 +50,8 @@ buildPythonPackage rec {
tornado tornado
]; ];
checkInputs = [ pyarrow pytestCheckHook ];
postPatch = '' postPatch = ''
# Is in setup_requires but not used in setup.py... # Is in setup_requires but not used in setup.py...
substituteInPlace setup.py --replace "'pytest-runner'" "" substituteInPlace setup.py --replace "'pytest-runner'" ""
@ -58,8 +59,18 @@ buildPythonPackage rec {
# test_discover requires driver_with_entrypoints-0.1.dist-info, which is not included in tarball # test_discover requires driver_with_entrypoints-0.1.dist-info, which is not included in tarball
# test_filtered_compressed_cache requires calvert_uk_filter.tar.gz, which is not included in tarball # test_filtered_compressed_cache requires calvert_uk_filter.tar.gz, which is not included in tarball
checkPhase = '' preCheck = ''
PATH=$out/bin:$PATH HOME=$(mktemp -d) pytest -k "not test_discover and not test_filtered_compressed_cache" HOME=$TMPDIR
PATH=$out/bin:$PATH
'';
# disable tests which touch network
disabledTests = ''
"test_discover"
"test_filtered_compressed_cache"
"test_get_dir"
"test_remote_cat"
"http"
''; '';
meta = with lib; { meta = with lib; {