mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-19 05:57:04 +01:00
gnu: snakemake-5: Use G-expression.
* gnu/packages/python-xyz.scm (snakemake-5)[arguments]: Use #$output instead of referencing "out" in outputs. Change-Id: Ie3d6d5788c4db4060e26079cb81441f5bc6f08e8
This commit is contained in:
parent
8b8e7971ba
commit
f3958db4ad
1 changed files with 12 additions and 13 deletions
|
@ -12821,19 +12821,18 @@ (define-public snakemake
|
|||
(build-system python-build-system)
|
||||
(arguments
|
||||
;; TODO: Package missing test dependencies.
|
||||
'(#:tests? #f
|
||||
#:phases
|
||||
(modify-phases %standard-phases
|
||||
;; For cluster execution Snakemake will call Python. Since there is
|
||||
;; no suitable PYTHONPATH set, cluster execution will fail. We fix
|
||||
;; this by calling the snakemake wrapper instead.
|
||||
(add-after 'unpack 'call-wrapper-not-wrapped-snakemake
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
(substitute* "snakemake/executors/__init__.py"
|
||||
(("\\{sys.executable\\} -m snakemake")
|
||||
(string-append (assoc-ref outputs "out")
|
||||
"/bin/snakemake")))
|
||||
#t)))))
|
||||
(list
|
||||
#:tests? #f
|
||||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
;; For cluster execution Snakemake will call Python. Since there is
|
||||
;; no suitable PYTHONPATH set, cluster execution will fail. We fix
|
||||
;; this by calling the snakemake wrapper instead.
|
||||
(add-after 'unpack 'call-wrapper-not-wrapped-snakemake
|
||||
(lambda _
|
||||
(substitute* "snakemake/executors/__init__.py"
|
||||
(("\\{sys.executable\\} -m snakemake")
|
||||
(string-append #$output "/bin/snakemake"))))))))
|
||||
(propagated-inputs
|
||||
(list python-appdirs
|
||||
python-configargparse
|
||||
|
|
Loading…
Reference in a new issue