diff options
author | Arun Isaac | 2024-03-11 19:07:16 +0000 |
---|---|---|
committer | Arun Isaac | 2024-03-11 19:07:16 +0000 |
commit | d68beff869e887cd0afbde6079b2f41a61053c42 (patch) | |
tree | 3f6bfed46d002987c09c8d17816510154b9a031f /gn/packages | |
parent | 4a177f3666b4bc3936a1d6e94f888feddcaa3d31 (diff) | |
download | guix-bioinformatics-d68beff869e887cd0afbde6079b2f41a61053c42.tar.gz |
gn: Add python-toil.
* gn/packages/cwl.scm (python-toil): New variable.
Diffstat (limited to 'gn/packages')
-rw-r--r-- | gn/packages/cwl.scm | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/gn/packages/cwl.scm b/gn/packages/cwl.scm index 96dad02..fe5fcb2 100644 --- a/gn/packages/cwl.scm +++ b/gn/packages/cwl.scm @@ -1,11 +1,19 @@ (define-module (gn packages cwl) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix download) + #:use-module (guix gexp) #:use-module (guix packages) + #:use-module (guix build-system pyproject) #:use-module (guix build-system python) #:use-module (gnu packages) #:use-module (gnu packages bioinformatics) + #:use-module (gnu packages docker) #:use-module (gnu packages node) + #:use-module (gnu packages python-web) + #:use-module (gnu packages python-xyz) + #:use-module (gnu packages serialization) + #:use-module (gnu packages time) + #:use-module (gn packages python)) (define-public cwl-runner @@ -41,3 +49,64 @@ script as an implementation-agnostic script interpreter.") (propagated-inputs (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 |