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 = {