python3Packages.snakemake-storage-plugin-xrootd: disable tests on darwin

This commit is contained in:
Gaetan Lepage
2026-06-04 22:23:42 +00:00
parent 27c732a56b
commit 4b4b7b24cc
@@ -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";