mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: snakemake: Fetch from git repository.
* gnu/packages/python-xyz.scm (snakemake)[source]: Fetch from git repository to include tests. [arguments]: Enable tests; add 'pre-check phase. [build-system]: Use pyproject-build-system. [native-inputs]: Add git-minimal, python-wrapper, python-pytest, python-pandas, and python-requests-mock. Change-Id: I32e9d36752cc91eacb8f05138d969834dbbce817
This commit is contained in:
parent
6095e5b436
commit
36a1e76173
1 changed files with 26 additions and 7 deletions
|
@ -13200,15 +13200,26 @@ approach.")
|
||||||
(version "5.32.2")
|
(version "5.32.2")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method git-fetch)
|
||||||
(uri (pypi-uri "snakemake" version))
|
(uri (git-reference
|
||||||
|
(url "https://github.com/snakemake/snakemake")
|
||||||
|
(commit (string-append "v" version))))
|
||||||
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "13013gdavwvyj1qr9xfi9fpwhb3km8c3z53bja5b7ic3sb2z6dgz"))))
|
(base32 "0nxp4z81vykv07kv2b6zrwk7ns8s10zqsb7vcignp8695yq3nlcm"))))
|
||||||
(build-system python-build-system)
|
(build-system pyproject-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
;; TODO: Package missing test dependencies.
|
|
||||||
(list
|
(list
|
||||||
#:tests? #f
|
#:test-flags
|
||||||
|
'(list
|
||||||
|
;; We have no TES support.
|
||||||
|
"--ignore=tests/test_tes.py"
|
||||||
|
;; This test attempts to change S3 buckets on AWS and fails
|
||||||
|
;; because there are no AWS credentials.
|
||||||
|
"--ignore=tests/test_tibanna.py"
|
||||||
|
;; It's a similar story with this test, which requires access
|
||||||
|
;; to the Google Storage service.
|
||||||
|
"--ignore=tests/test_google_lifesciences.py")
|
||||||
#:phases
|
#:phases
|
||||||
#~(modify-phases %standard-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
|
||||||
|
@ -13218,7 +13229,9 @@ approach.")
|
||||||
(lambda _
|
(lambda _
|
||||||
(substitute* "snakemake/executors/__init__.py"
|
(substitute* "snakemake/executors/__init__.py"
|
||||||
(("\\{sys.executable\\} -m snakemake")
|
(("\\{sys.executable\\} -m snakemake")
|
||||||
(string-append #$output "/bin/snakemake"))))))))
|
(string-append #$output "/bin/snakemake")))))
|
||||||
|
(add-before 'check 'pre-check
|
||||||
|
(lambda _ (setenv "HOME" "/tmp"))))))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
(list python-appdirs
|
(list python-appdirs
|
||||||
python-configargparse
|
python-configargparse
|
||||||
|
@ -13236,6 +13249,12 @@ approach.")
|
||||||
python-requests
|
python-requests
|
||||||
python-toposort
|
python-toposort
|
||||||
python-wrapt))
|
python-wrapt))
|
||||||
|
(native-inputs
|
||||||
|
(list git-minimal
|
||||||
|
python-wrapper
|
||||||
|
python-pytest
|
||||||
|
python-pandas
|
||||||
|
python-requests-mock))
|
||||||
(home-page "https://snakemake.readthedocs.io")
|
(home-page "https://snakemake.readthedocs.io")
|
||||||
(synopsis "Python-based execution environment for make-like workflows")
|
(synopsis "Python-based execution environment for make-like workflows")
|
||||||
(description
|
(description
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue