summary refs log tree commit diff
path: root/pkgs/development/python-modules/apache-airflow
diff options
context:
space:
mode:
authorSebastián Mancilla <smancill@smancill.dev>2021-11-19 21:35:17 -0300
committerSebastián Mancilla <smancill@smancill.dev>2021-11-19 21:37:45 -0300
commit21d4d1bfdae4221013996cf6062ef493e6632e03 (patch)
treed7d0be22e14d45c94d20fbcf08e62d469fa8ebea /pkgs/development/python-modules/apache-airflow
parentec05219e4092d03f335da1ac5794801d88350eab (diff)
downloadnixpkgs-21d4d1bfdae4221013996cf6062ef493e6632e03.tar
nixpkgs-21d4d1bfdae4221013996cf6062ef493e6632e03.tar.gz
nixpkgs-21d4d1bfdae4221013996cf6062ef493e6632e03.tar.bz2
nixpkgs-21d4d1bfdae4221013996cf6062ef493e6632e03.tar.lz
nixpkgs-21d4d1bfdae4221013996cf6062ef493e6632e03.tar.xz
nixpkgs-21d4d1bfdae4221013996cf6062ef493e6632e03.tar.zst
nixpkgs-21d4d1bfdae4221013996cf6062ef493e6632e03.zip
apache-airflow: fix build on darwin
- Disable failing test on darwin.
- Patch failing test on Hydra (failed to write to /tmp)
Diffstat (limited to 'pkgs/development/python-modules/apache-airflow')
-rw-r--r--pkgs/development/python-modules/apache-airflow/default.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/apache-airflow/default.nix b/pkgs/development/python-modules/apache-airflow/default.nix
index 23fa5b6a860..22a1772bf16 100644
--- a/pkgs/development/python-modules/apache-airflow/default.nix
+++ b/pkgs/development/python-modules/apache-airflow/default.nix
@@ -199,6 +199,10 @@ buildPythonPackage rec {
 
     substituteInPlace tests/core/test_core.py \
       --replace "/bin/bash" "${stdenv.shell}"
+  '' + lib.optionalString stdenv.isDarwin ''
+    # Fix failing test on Hydra
+    substituteInPlace airflow/utils/db.py \
+      --replace "/tmp/sqlite_default.db" "$TMPDIR/sqlite_default.db"
   '';
 
   # allow for gunicorn processes to have access to python packages
@@ -220,6 +224,10 @@ buildPythonPackage rec {
     "tests/core/test_core.py"
   ];
 
+  disabledTests = lib.optionals stdenv.isDarwin [
+    "bash_operator_kill"  # psutil.AccessDenied
+  ];
+
   postInstall = ''
     cp -rv ${airflow-frontend}/static/dist $out/lib/${python.libPrefix}/site-packages/airflow/www/static
   '';