From ce6b8be7d74e0e4f7c99a91ac661b424e84e5ce3 Mon Sep 17 00:00:00 2001 From: Phillip Cloud <417981+cpcloud@users.noreply.github.com> Date: Fri, 18 Feb 2022 05:52:56 -0500 Subject: [PATCH] python3Packages.pyarrow: use extglob to reduce preCheck code --- pkgs/development/python-modules/pyarrow/default.nix | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/pyarrow/default.nix b/pkgs/development/python-modules/pyarrow/default.nix index 502840048ce4..d48fedc6431b 100644 --- a/pkgs/development/python-modules/pyarrow/default.nix +++ b/pkgs/development/python-modules/pyarrow/default.nix @@ -84,10 +84,8 @@ buildPythonPackage rec { dontUseSetuptoolsCheck = true; preCheck = '' - mv pyarrow/tests tests - rm -rf pyarrow - mkdir pyarrow - mv tests pyarrow/tests + shopt -s extglob + rm -r pyarrow/!(tests) ''; pythonImportsCheck = map (module: "pyarrow.${module}") [