Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

66 lines
1.3 KiB
Nix

{
lib,
stdenv,
buildPythonPackage,
fetchFromGitHub,
# build-system
setuptools,
setuptools-scm,
# dependencies
fsspec,
xrootd,
# tests
pkgs,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "fsspec-xrootd";
version = "0.5.1";
pyproject = true;
src = fetchFromGitHub {
owner = "CoffeaTeam";
repo = "fsspec-xrootd";
tag = "v${version}";
hash = "sha256-Vpe/Gcm6rmehG05h2H7BDZcBQDyie0Ww9X8LgoTgAkE=";
};
build-system = [
setuptools
setuptools-scm
];
dependencies = [
fsspec
xrootd
];
pythonImportsCheck = [ "fsspec_xrootd" ];
nativeCheckInputs = [
pkgs.xrootd
pytestCheckHook
];
disabledTests = [
# Fails (on aarch64-linux) as it runs sleep, touch, stat and makes assumptions about the
# scheduler and the filesystem.
"test_touch_modified"
];
# Timeout related tests hang indifinetely
disabledTestPaths = lib.optionals stdenv.hostPlatform.isDarwin [ "tests/test_basicio.py" ];
meta = {
description = "XRootD implementation for fsspec";
homepage = "https://github.com/CoffeaTeam/fsspec-xrootd";
changelog = "https://github.com/CoffeaTeam/fsspec-xrootd/releases/tag/v${version}";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ GaetanLepage ];
};
}