depot/third_party/nixpkgs/pkgs/development/python-modules/fsspec-xrootd/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

62 lines
1.3 KiB
Nix

{
lib,
buildPythonPackage,
pythonOlder,
fetchFromGitHub,
setuptools,
setuptools-scm,
fsspec,
xrootd,
pkgs,
pytestCheckHook,
stdenv,
}:
buildPythonPackage rec {
pname = "fsspec-xrootd";
version = "0.3.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "CoffeaTeam";
repo = "fsspec-xrootd";
rev = "refs/tags/v${version}";
hash = "sha256-fhamfMWlsiiqfU9c9XDfLEEkRbMAqm74rc2bGF3fRaM=";
};
nativeBuildInputs = [
setuptools
setuptools-scm
];
propagatedBuildInputs = [
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 = with lib; {
description = "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 ];
};
}