2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
poetry-core,
|
|
|
|
snakemake,
|
|
|
|
snakemake-interface-storage-plugins,
|
|
|
|
snakemake-interface-common,
|
|
|
|
xrootd,
|
2024-04-21 15:54:59 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "snakemake-storage-plugin-xrootd";
|
2024-09-26 11:04:55 +00:00
|
|
|
version = "0.1.4";
|
2024-09-19 14:19:46 +00:00
|
|
|
pyproject = true;
|
2024-04-21 15:54:59 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "snakemake";
|
|
|
|
repo = pname;
|
2024-09-19 14:19:46 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-09-26 11:04:55 +00:00
|
|
|
hash = "sha256-1plBss9jRzIIGQE7rXDEnAomFxNzSUKsw0VyhYA2mIc=";
|
2024-04-21 15:54:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# xrootd<6.0.0,>=5.6.4 not satisfied by version 5.7rc20240303
|
2024-09-19 14:19:46 +00:00
|
|
|
pythonRelaxDeps = [ "xrootd" ];
|
2024-04-21 15:54:59 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
build-system = [ poetry-core ];
|
2024-04-21 15:54:59 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
dependencies = [
|
2024-04-21 15:54:59 +00:00
|
|
|
snakemake-interface-storage-plugins
|
|
|
|
snakemake-interface-common
|
|
|
|
xrootd
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ snakemake ];
|
2024-04-21 15:54:59 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "snakemake_storage_plugin_xrootd" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Snakemake storage plugin for handling input and output via XRootD";
|
2024-04-21 15:54:59 +00:00
|
|
|
homepage = "https://github.com/snakemake/snakemake-storage-plugin-xrootd";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ veprbl ];
|
|
|
|
};
|
|
|
|
}
|