diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index b3c6d9821e7..b9a7c0b2229 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -13227,6 +13227,14 @@ approach.") (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.