From 0d8c133ee49b412cf73cab7cda8124af49896729 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Fri, 24 Oct 2025 14:29:59 +0000 Subject: [PATCH] python3Packages.scikit-bio: disable tests on darwin --- pkgs/development/python-modules/scikit-bio/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/python-modules/scikit-bio/default.nix b/pkgs/development/python-modules/scikit-bio/default.nix index 10e635b53b65..151ae1f21f42 100644 --- a/pkgs/development/python-modules/scikit-bio/default.nix +++ b/pkgs/development/python-modules/scikit-bio/default.nix @@ -1,5 +1,6 @@ { lib, + stdenv, buildPythonPackage, fetchFromGitHub, @@ -65,6 +66,10 @@ buildPythonPackage rec { # only the $out dir contains the built cython extensions, so we run the tests inside there enabledTestPaths = [ "${placeholder "out"}/${python.sitePackages}/skbio" ]; + # The trick above makes test collection fail on darwin: + # PermissionError: [Errno 1] Operation not permitted: '/nix/.Trashes' + doCheck = !stdenv.hostPlatform.isDarwin; + pythonImportsCheck = [ "skbio" ]; meta = {