unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Arun Isaac <arunisaac@systemreboot.net>
To: 69736@debbugs.gnu.org
Cc: Arun Isaac <arunisaac@systemreboot.net>,
	Arun Isaac <arunisaac@systemreboot.net>, jgart <jgart@dismail.de>
Subject: [bug#69736] [PATCH v2 6/6] gnu: Add python-toil.
Date: Wed,  3 Jul 2024 16:07:22 +0100	[thread overview]
Message-ID: <b0c5d131a1dbec10eacd02dccd33e625d7328197.1720019009.git.arunisaac@systemreboot.net> (raw)
In-Reply-To: <e12de8de1e24ce823916f21cd01e855086dc6d0a.1720019008.git.arunisaac@systemreboot.net>

* gnu/packages/bioinformatics.scm (python-toil): New variable.

Change-Id: I1a6c071eaa9169c1e0cd7c74d1117490ee7bf267
---
 gnu/packages/bioinformatics.scm | 62 +++++++++++++++++++++++++++++++++
 1 file changed, 62 insertions(+)

diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm
index b83e18ea78..6d15b1a226 100644
--- a/gnu/packages/bioinformatics.scm
+++ b/gnu/packages/bioinformatics.scm
@@ -88,6 +88,7 @@ (define-module (gnu packages bioinformatics)
   #:use-module (gnu packages databases)
   #:use-module (gnu packages datastructures)
   #:use-module (gnu packages dlang)
+  #:use-module (gnu packages docker)
   #:use-module (gnu packages file)
   #:use-module (gnu packages flex)
   #:use-module (gnu packages gawk)
@@ -5828,6 +5829,67 @@ (define-public python-cwltool
      (modify-inputs (package-inputs cwltool)
        (delete "node")))))
 
+(define-public python-toil
+  (package
+    (name "python-toil")
+    (version "6.1.0")
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "toil" version))
+              (sha256
+               (base32
+                "0hwaihnncsfxw0sf3iigvgw6nylrb56lpk8qjadkgazr98dsp4ha"))))
+    (build-system pyproject-build-system)
+    (arguments
+     (list
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'unpack 'disable-optional-features
+            (lambda _
+              (substitute* "requirements-cwl.txt"
+                ;; Loosen version restrictions on ruamel.yaml.
+                (("ruamel.yaml[<>=.,[:digit:]]*\n") "ruamel.yaml\n")
+                ;; Remove optional dependency on galaxy-util and
+                ;; galaxy-tool-util. TODO: Package these and restore these
+                ;; dependencies.
+                (("galaxy-util[^\n]*") "")
+                (("galaxy-tool-util[^\n]*") ""))
+              ;; Disable optional wdl, wes and mesos features. We don't yet
+              ;; have dependencies packaged for them. TODO: Package these
+              ;; dependencies and enable these features.
+              (substitute* "setup.py"
+                (("\"wdl\",") "")
+                (("toil-cwl-runner = toil.cwl.cwltoil:main \\[cwl\\]")
+                 "toil-cwl-runner = toil.cwl.cwltoil:main")
+                (("'toil-wdl-runner = toil.wdl.wdltoil:main \\[wdl\\]',") "")
+                (("'toil-wes-cwl-runner = toil.server.cli.wes_cwl_runner:main \\[server\\]',") "")
+                (("'_toil_mesos_executor = toil.batchSystems.mesos.executor:main \\[mesos\\]',") "")))))))
+    (propagated-inputs
+     (list python-addict
+           python-cachecontrol
+           python-configargparse
+           python-cwltool
+           python-dateutil
+           python-dill
+           python-docker
+           python-enlighten
+           python-psutil
+           python-pypubsub
+           python-pytz
+           python-pyyaml
+           python-requests
+           python-ruamel.yaml
+           python-typing-extensions-4.10
+           python-urllib3))
+    (home-page "https://github.com/DataBiosphere/toil")
+    (synopsis "Scalable, efficient and cross-platform workflow engine")
+    (description "Toil is a scalable, efficient, cross-platform pipeline
+management system, written entirely in Python, and designed around the
+principles of functional programming.")
+    (license (list license:asl2.0    ;; main license
+                   license:expat)))) ;; src/toil/batchSystems/lsf.py and
+                                     ;; src/toil/batchSystems/lsfHelper.py
+
 (define-public python-dendropy
   (package
     (name "python-dendropy")
-- 
2.45.2





      parent reply	other threads:[~2024-07-03 15:08 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-11 18:11 [bug#69736] [PATCH 0/7] Add toil Arun Isaac
2024-03-11 18:22 ` [bug#69736] [PATCH 1/7] gnu: Add python-typing-extensions-4.10 Arun Isaac
2024-03-11 18:22 ` [bug#69736] [PATCH 2/7] gnu: Add python-pypubsub Arun Isaac
2024-03-11 18:22 ` [bug#69736] [PATCH 3/7] gnu: Add python-addict Arun Isaac
2024-03-11 18:22 ` [bug#69736] [PATCH 4/7] gnu: Add python-prefixed Arun Isaac
2024-03-11 18:22 ` [bug#69736] [PATCH 5/7] gnu: Add python-enlighten Arun Isaac
2024-03-11 18:22 ` [bug#69736] [PATCH 6/7] gnu: Add python-cwltool Arun Isaac
2024-03-11 18:22 ` [bug#69736] [PATCH 7/7] gnu: Add python-toil Arun Isaac
2024-07-01  2:54   ` [bug#69736] [PATCH 0/7] Add toil jgart via Guix-patches via
2024-07-03 15:05     ` Arun Isaac
2024-07-03 15:07 ` [bug#69736] [PATCH v2 1/6] gnu: Add python-pypubsub Arun Isaac
2024-07-03 15:07   ` [bug#69736] [PATCH v2 2/6] gnu: Add python-addict Arun Isaac
2024-07-03 15:07   ` [bug#69736] [PATCH v2 3/6] gnu: Add python-prefixed Arun Isaac
2024-07-03 15:07   ` [bug#69736] [PATCH v2 4/6] gnu: Add python-enlighten Arun Isaac
2024-07-03 15:07   ` [bug#69736] [PATCH v2 5/6] gnu: Add python-cwltool Arun Isaac
2024-07-03 15:07   ` Arun Isaac [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b0c5d131a1dbec10eacd02dccd33e625d7328197.1720019009.git.arunisaac@systemreboot.net \
    --to=arunisaac@systemreboot.net \
    --cc=69736@debbugs.gnu.org \
    --cc=jgart@dismail.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).