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:
Ricardo Wurmus 2024-05-02 21:45:49 +02:00
parent 8d14b1cbb6
commit 9692e2bb7c
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -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.