summary refs log tree commit diff
diff options
context:
space:
mode:
authorNoah D. Brenowitz <nbren12@gmail.com>2021-04-26 10:41:03 -0700
committerFrederik Rietdijk <freddyrietdijk@fridh.nl>2021-04-27 10:50:56 +0200
commitfc98e85759e93d3041026c91150f4303d706f272 (patch)
treee0cd35892c3b0ff969020c13a085821b2adea5e9
parent672912f73e990436313fa568dd1876282877ec30 (diff)
downloadnixpkgs-fc98e85759e93d3041026c91150f4303d706f272.tar
nixpkgs-fc98e85759e93d3041026c91150f4303d706f272.tar.gz
nixpkgs-fc98e85759e93d3041026c91150f4303d706f272.tar.bz2
nixpkgs-fc98e85759e93d3041026c91150f4303d706f272.tar.lz
nixpkgs-fc98e85759e93d3041026c91150f4303d706f272.tar.xz
nixpkgs-fc98e85759e93d3041026c91150f4303d706f272.tar.zst
nixpkgs-fc98e85759e93d3041026c91150f4303d706f272.zip
python3Packages.dask: disable network tests
There were hydra failures (https://hydra.nixos.org/build/141870744/nixlog/1) for some tests requiring data on github (failing on mac and linux), and tests requiring local network access on mac.
Disable the former and enable the latter.
-rw-r--r--pkgs/development/python-modules/dask/default.nix7
1 files changed, 6 insertions, 1 deletions
diff --git a/pkgs/development/python-modules/dask/default.nix b/pkgs/development/python-modules/dask/default.nix
index 13c03a1f796..1c6d37681a6 100644
--- a/pkgs/development/python-modules/dask/default.nix
+++ b/pkgs/development/python-modules/dask/default.nix
@@ -72,7 +72,10 @@ buildPythonPackage rec {
       --replace "cmdclass=versioneer.get_cmdclass()," ""
   '';
 
-  pytestFlagsArray = [ "-n $NIX_BUILD_CORES" ];
+  pytestFlagsArray = [
+    "-n $NIX_BUILD_CORES"
+    "-m 'not network'"
+  ];
 
   disabledTests = [
     "test_annotation_pack_unpack"
@@ -82,6 +85,8 @@ buildPythonPackage rec {
     "test_auto_blocksize_csv"
   ];
 
+  __darwinAllowLocalNetworking = true;
+
   pythonImportsCheck = [ "dask.dataframe" "dask" "dask.array" ];
 
   meta = with lib; {