mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-31 06:46:50 +01:00
gnu: snakemake-5: Patch version string.
* gnu/packages/python-xyz.scm (snakemake-5)[arguments]: Add phase 'patch-version. Change-Id: I647625e9d26b2ee06274a0c5bb844ccb87035537
This commit is contained in:
parent
8d14b1cbb6
commit
9692e2bb7c
1 changed files with 8 additions and 0 deletions
|
@ -13227,6 +13227,14 @@ (define-public snakemake
|
|||
(substitute* "snakemake/dag.py"
|
||||
(("\"job\": rule,")
|
||||
"\"job\": rule.name,"))))
|
||||
(add-after 'unpack 'patch-version
|
||||
(lambda _
|
||||
(substitute* "setup.py"
|
||||
(("version=versioneer.get_version\\(\\)")
|
||||
(format #f "version=~s" #$version)))
|
||||
(substitute* '("snakemake/_version.py"
|
||||
"versioneer.py")
|
||||
(("0\\+unknown") #$version))))
|
||||
;; 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.
|
||||
|
|
Loading…
Reference in a new issue