From e7dbc2e41d6ad5903a52042a698a470865cc504c Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Fri, 22 May 2026 08:15:51 +0000 Subject: [PATCH] python3Packages.snakemake-storage-plugin-xrootd: 1.0.0 -> 1.1.0 Diff: https://github.com/snakemake/snakemake-storage-plugin-xrootd/compare/v1.0.0...v1.1.0 Changelog: https://github.com/snakemake/snakemake-storage-plugin-xrootd/releases/tag/v1.1.0 --- .../default.nix | 43 ++++++++++++++----- 1 file changed, 32 insertions(+), 11 deletions(-) diff --git a/pkgs/development/python-modules/snakemake-storage-plugin-xrootd/default.nix b/pkgs/development/python-modules/snakemake-storage-plugin-xrootd/default.nix index de5a3cbdf62d..fc67fd23a9ad 100644 --- a/pkgs/development/python-modules/snakemake-storage-plugin-xrootd/default.nix +++ b/pkgs/development/python-modules/snakemake-storage-plugin-xrootd/default.nix @@ -1,29 +1,43 @@ { lib, + pkgs, buildPythonPackage, fetchFromGitHub, + + # build-system hatch-vcs, hatchling, - snakemake, - snakemake-interface-storage-plugins, + + # dependencies + reretry, snakemake-interface-common, + snakemake-interface-storage-plugins, xrootd, + + # tests + pytestCheckHook, + snakemake, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "snakemake-storage-plugin-xrootd"; - version = "1.0.0"; + version = "1.1.0"; pyproject = true; + __structuredAttrs = true; src = fetchFromGitHub { owner = "snakemake"; repo = "snakemake-storage-plugin-xrootd"; - tag = "v${version}"; - hash = "sha256-QYG/BE7y3h/Mz1PrVVxmfBBLBLoirrEx9unSEaflUds="; + tag = "v${finalAttrs.version}"; + hash = "sha256-vL9JD9h0ywsKpUPoXhgg6b+vwi7kxK8CF3L6HnAEidE="; }; - # xrootd<6.0.0,>=5.6.4 not satisfied by version 5.7rc20240303 - pythonRelaxDeps = [ "xrootd" ]; + postPatch = '' + substituteInPlace tests/tests.py \ + --replace-fail \ + 'subprocess.Popen(["xrootd",' \ + 'subprocess.Popen(["${lib.getExe pkgs.xrootd}",' + ''; build-system = [ hatch-vcs @@ -33,17 +47,24 @@ buildPythonPackage rec { dependencies = [ snakemake-interface-storage-plugins snakemake-interface-common + reretry xrootd ]; - nativeCheckInputs = [ snakemake ]; - pythonImportsCheck = [ "snakemake_storage_plugin_xrootd" ]; + nativeCheckInputs = [ + pytestCheckHook + snakemake + ]; + + enabledTestPaths = [ "tests/tests.py" ]; + meta = { description = "Snakemake storage plugin for handling input and output via XRootD"; homepage = "https://github.com/snakemake/snakemake-storage-plugin-xrootd"; + changelog = "https://github.com/snakemake/snakemake-storage-plugin-xrootd/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ veprbl ]; }; -} +})