From 75e930a7d67d11ecfa19487295acd7cb0793d3e5 Mon Sep 17 00:00:00 2001 From: Janneke Nieuwenhuizen Date: Tue, 2 Sep 2025 22:03:56 +0200 Subject: [PATCH] gnu: Add python-snakemake-executor-plugin-slurm-jobstep. * gnu/packages/python-science.scm (python-snakemake-executor-plugin-slurm-jobstep): New variable. Change-Id: I477b8a30ae6642fa0e8d6e49a828ab0d3aa589b4 --- gnu/packages/python-science.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm index ce33eb570ca215577378db1a28d6d32525001cb1..998e3dad2c300e751ccfc0cc705e99dc9ee6f782 100644 --- a/gnu/packages/python-science.scm +++ b/gnu/packages/python-science.scm @@ -37,6 +37,7 @@ ;;; Copyright © 2025 Nguyễn Gia Phong ;;; Copyright © 2025 Jake Forster ;;; Copyright © 2025 Ghislain Vaillant +;;; Copyright © 2025 Janneke Nieuwenhuizen ;;; ;;; This file is part of GNU Guix. ;;; @@ -3434,6 +3435,35 @@ its software deployment plugins.") Snakemake and its storage plugins.") (license license:expat))) +(define-public python-snakemake-executor-plugin-slurm-jobstep + (package + (name "python-snakemake-executor-plugin-slurm-jobstep") + (version "0.3.0") + (home-page "https://github.com/snakemake/snakemake-executor-plugin-slurm-jobstep") + (source + (origin + (method git-fetch) + (uri (git-reference + (url home-page) + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0ly15ywmbfcm5z7jy7dxiidpw3immsdd2k80vrm4pza721irxcar")))) + (build-system pyproject-build-system) + (arguments + (list #:phases + #~(modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "python3" "tests/tests.py"))))))) + (native-inputs (list python-poetry-core + snakemake)) + (synopsis "Snakemake executor plugin: slurm-jobstep") + (description "A Snakemake executor plugin for running srun jobs inside of +SLURM jobs (meant for internal use by python-snakemake-executor-plugin-slurm).") + (license license:expat))) + (define-public python-sparse (package (name "python-sparse")