depot/third_party/nixpkgs/pkgs/development/python-modules/fsspec-xrootd/default.nix

66 lines
1.3 KiB
Nix
Raw Normal View History

{
lib,
stdenv,
buildPythonPackage,
fetchFromGitHub,
# build-system
setuptools,
setuptools-scm,
# dependencies
fsspec,
xrootd,
# tests
pkgs,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "fsspec-xrootd";
version = "0.4.0";
pyproject = true;
src = fetchFromGitHub {
owner = "CoffeaTeam";
repo = "fsspec-xrootd";
rev = "refs/tags/v${version}";
hash = "sha256-Ge7pVrcCYNp8yNV+ZkBftLeCCSUhtO+HJHsSHT58jcs=";
};
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 ];
};
}