mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-02-03 00:26:33 +01:00
gnu: snakemake-7: Fix version reporting.
* gnu/packages/python-xyz.scm (snakemake-7)[arguments]: Add phase 'patch-version and use G-exp. [build-system]: Use pyproject-build-system.
This commit is contained in:
parent
896b40d2ca
commit
f872482043
1 changed files with 34 additions and 25 deletions
|
@ -11519,10 +11519,11 @@ (define-public snakemake-7
|
||||||
(file-name (git-file-name name version))
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "1qrqbmx4cbis0wxr6dl2rdjv9v627sbirsz6v5c31vlbqwkvs04q"))))
|
(base32 "1qrqbmx4cbis0wxr6dl2rdjv9v627sbirsz6v5c31vlbqwkvs04q"))))
|
||||||
(build-system python-build-system)
|
(build-system pyproject-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
'(#:phases
|
(list
|
||||||
(modify-phases %standard-phases
|
#:phases
|
||||||
|
#~(modify-phases %standard-phases
|
||||||
;; For cluster execution Snakemake will call Python. Since there is
|
;; For cluster execution Snakemake will call Python. Since there is
|
||||||
;; no suitable GUIX_PYTHONPATH set, cluster execution will fail. We
|
;; no suitable GUIX_PYTHONPATH set, cluster execution will fail. We
|
||||||
;; fix this by calling the snakemake wrapper instead.
|
;; fix this by calling the snakemake wrapper instead.
|
||||||
|
@ -11532,8 +11533,16 @@ (define-public snakemake-7
|
||||||
(("self\\.get_python_executable\\(\\),")
|
(("self\\.get_python_executable\\(\\),")
|
||||||
"")
|
"")
|
||||||
(("\"-m snakemake\"")
|
(("\"-m snakemake\"")
|
||||||
(string-append "\"" (assoc-ref outputs "out")
|
(string-append "\"" #$output
|
||||||
"/bin/snakemake" "\"")))))
|
"/bin/snakemake" "\"")))))
|
||||||
|
(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))))
|
||||||
(replace 'check
|
(replace 'check
|
||||||
(lambda* (#:key tests? #:allow-other-keys)
|
(lambda* (#:key tests? #:allow-other-keys)
|
||||||
(when tests?
|
(when tests?
|
||||||
|
|
Loading…
Reference in a new issue