From 2f5200175fa9da14e5a328e878ffe97d3483cb04 Mon Sep 17 00:00:00 2001 From: Dmitry Kalinkin Date: Tue, 26 Mar 2024 13:40:21 -0400 Subject: [PATCH] python311Packages.snakemake-storage-plugin-xrootd: init at unstable-2023-12-16 --- .../default.nix | 51 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 53 insertions(+) create mode 100644 pkgs/development/python-modules/snakemake-storage-plugin-xrootd/default.nix diff --git a/pkgs/development/python-modules/snakemake-storage-plugin-xrootd/default.nix b/pkgs/development/python-modules/snakemake-storage-plugin-xrootd/default.nix new file mode 100644 index 000000000000..82d8c2928c3c --- /dev/null +++ b/pkgs/development/python-modules/snakemake-storage-plugin-xrootd/default.nix @@ -0,0 +1,51 @@ +{ 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 = "A 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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 8fad03dc3c27..26c1526aedfd 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -13706,6 +13706,8 @@ self: super: with self; { snakemake-storage-plugin-s3 = callPackage ../development/python-modules/snakemake-storage-plugin-s3 { }; + snakemake-storage-plugin-xrootd = callPackage ../development/python-modules/snakemake-storage-plugin-xrootd { }; + snakebite = callPackage ../development/python-modules/snakebite { }; snakeviz = callPackage ../development/python-modules/snakeviz { };