From 792e5af45bb43455d5096f88ba7ba9a9767b3272 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 31 May 2022 10:49:31 +0200 Subject: [PATCH] python310Packages.intake: 0.6.4 -> 0.6.5 --- .../python-modules/intake/default.nix | 64 ++++++++++++------- 1 file changed, 41 insertions(+), 23 deletions(-) diff --git a/pkgs/development/python-modules/intake/default.nix b/pkgs/development/python-modules/intake/default.nix index 0228ae6bcf23..6f895b45ed03 100644 --- a/pkgs/development/python-modules/intake/default.nix +++ b/pkgs/development/python-modules/intake/default.nix @@ -6,7 +6,6 @@ , entrypoints , fetchFromGitHub , fsspec -, holoviews , hvplot , intake-parquet , jinja2 @@ -27,7 +26,8 @@ buildPythonPackage rec { pname = "intake"; - version = "0.6.4"; + version = "0.6.5"; + format = "setuptools"; disabled = pythonOlder "3.7"; @@ -35,57 +35,75 @@ buildPythonPackage rec { owner = pname; repo = pname; rev = version; - sha256 = "194cdd6lx92zcpkn3wgm490kxvw0c58ziix8hcihsr5ayfr1wdsl"; + hash = "sha256-ABMXWUVptpOSPB1jQ57iXk/UG92puNCICzXo3ZMG2Pk="; }; propagatedBuildInputs = [ appdirs - bokeh dask entrypoints fsspec - holoviews - hvplot - jinja2 msgpack - msgpack-numpy - numpy + jinja2 pandas - panel - pyarrow - python-snappy pyyaml - requests - tornado ]; checkInputs = [ intake-parquet pytestCheckHook - ]; + ] ++ passthru.optional-dependencies.server; + + passthru.optional-dependencies = { + server = [ + msgpack + python-snappy + tornado + ]; + dataframe = [ + msgpack-numpy + pyarrow + ]; + plot = [ + hvplot + bokeh + panel + ]; + remote = [ + requests + ]; + }; postPatch = '' substituteInPlace setup.py \ --replace "'pytest-runner'" "" ''; - # 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 preCheck = '' - HOME=$TMPDIR - PATH=$out/bin:$PATH + export HOME=$(mktemp -d); + export PATH="$PATH:$out/bin"; ''; disabledTests = [ - # Disable tests which touch network and are broken + # Disable tests which touch network + "http" + "test_dir" "test_discover" "test_filtered_compressed_cache" + "test_flatten_flag" "test_get_dir" - "test_remote_cat" - "http" + "test_pagination" + "test_read_part_compressed" + "test_read_partition" "test_read_pattern" "test_remote_arr" - "test_flatten_flag" + "test_remote_cat" + # ValueError + "test_mlist_parameter" + # ImportError + "test_dataframe" + "test_ndarray" + "test_python" # Timing-based, flaky on darwin and possibly others "TestServerV1Source.test_idle_timer" ] ++ lib.optionals (stdenv.isDarwin && lib.versionOlder stdenv.hostPlatform.darwinMinVersion "10.13") [