2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
pythonOlder,
|
|
|
|
fetchFromGitHub,
|
|
|
|
setuptools,
|
|
|
|
setuptools-scm,
|
|
|
|
fsspec,
|
|
|
|
xrootd,
|
|
|
|
pkgs,
|
|
|
|
pytestCheckHook,
|
|
|
|
stdenv,
|
2024-02-29 20:09:43 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "fsspec-xrootd";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "0.3.0";
|
2024-02-29 20:09:43 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "CoffeaTeam";
|
|
|
|
repo = "fsspec-xrootd";
|
|
|
|
rev = "refs/tags/v${version}";
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-fhamfMWlsiiqfU9c9XDfLEEkRbMAqm74rc2bGF3fRaM=";
|
2024-02-29 20:09:43 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
fsspec
|
|
|
|
xrootd
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "fsspec_xrootd" ];
|
2024-02-29 20:09:43 +00:00
|
|
|
|
|
|
|
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
|
2024-06-05 15:53:02 +00:00
|
|
|
disabledTestPaths = lib.optionals stdenv.hostPlatform.isDarwin [ "tests/test_basicio.py" ];
|
2024-02-29 20:09:43 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "An XRootD implementation for fsspec";
|
|
|
|
homepage = "https://github.com/CoffeaTeam/fsspec-xrootd";
|
|
|
|
changelog = "https://github.com/CoffeaTeam/fsspec-xrootd/releases/tag/v${version}";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ GaetanLepage ];
|
|
|
|
};
|
|
|
|
}
|