diff --git a/pkgs/development/python-modules/snakemake-storage-plugin-xrootd/default.nix b/pkgs/development/python-modules/snakemake-storage-plugin-xrootd/default.nix index fc67fd23a9ad..802082fd6bfa 100644 --- a/pkgs/development/python-modules/snakemake-storage-plugin-xrootd/default.nix +++ b/pkgs/development/python-modules/snakemake-storage-plugin-xrootd/default.nix @@ -1,5 +1,6 @@ { lib, + stdenv, pkgs, buildPythonPackage, fetchFromGitHub, @@ -51,7 +52,9 @@ buildPythonPackage (finalAttrs: { xrootd ]; - pythonImportsCheck = [ "snakemake_storage_plugin_xrootd" ]; + # When doCheck is disabled, nnativeCheckInputs are not available and the package fails to import: + # ModuleNotFoundError: No module named 'snakemake' + pythonImportsCheck = lib.optionals finalAttrs.doCheck [ "snakemake_storage_plugin_xrootd" ]; nativeCheckInputs = [ pytestCheckHook @@ -60,6 +63,16 @@ buildPythonPackage (finalAttrs: { enabledTestPaths = [ "tests/tests.py" ]; + # Tests fail on darwin even with: + # - __darwinAllowLocalNetworking = true; + # - sandbox = false + # - writableTmpDirAsHomeHook + # + # Failed: XRootD server terminated unexpectedly. + # 260604 22:16:56 259 XrdConfig: Unable to set permission for admin path /tmp/.xrd/; operation not permitted + # ------ xrootd anon@91-224-148-58.tetaneutral.net:32293 initialization failed. + doCheck = !stdenv.hostPlatform.isDarwin; + meta = { description = "Snakemake storage plugin for handling input and output via XRootD"; homepage = "https://github.com/snakemake/snakemake-storage-plugin-xrootd";