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

48 lines
1.2 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
snakemake,
snakemake-interface-storage-plugins,
snakemake-interface-common,
xrootd,
}:
buildPythonPackage rec {
pname = "snakemake-storage-plugin-xrootd";
version = "unstable-2023-12-16";
format = "pyproject";
src = fetchFromGitHub {
owner = "snakemake";
repo = pname;
rev = "408f1e956b5427c34b49eeca340492a438e8eccb";
hash = "sha256-CcSG//D9kz0Q4LtaSngJpCtY0dbNFFuKMVmBxR1fcMo=";
};
# xrootd<6.0.0,>=5.6.4 not satisfied by version 5.7rc20240303
postPatch = ''
substituteInPlace pyproject.toml \
--replace 'xrootd = "^5.6.4"' ""
'';
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [
snakemake-interface-storage-plugins
snakemake-interface-common
xrootd
];
nativeCheckInputs = [ snakemake ];
pythonImportsCheck = [ "snakemake_storage_plugin_xrootd" ];
meta = with lib; {
description = "Snakemake storage plugin for handling input and output via XRootD";
homepage = "https://github.com/snakemake/snakemake-storage-plugin-xrootd";
license = licenses.mit;
maintainers = with maintainers; [ veprbl ];
};
}