diff options
| author | Hugo Buddelmeijer <hugo@buddelmeijer.nl> | 2025-12-26 19:51:16 +0100 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-12-27 12:01:11 +0000 |
| commit | 02dd2b8552d0d695a7a49b23e179c32b2b20d0d6 (patch) | |
| tree | 5e69ae660235a8292c35836af720e3daadaf1c80 /gnu | |
| parent | 36c5be27f36314c152385740d57b6074a0ac244d (diff) | |
gnu: python-tspex: Update to 0.6.3-0.d393ff4.
* gnu/packages/python-science.scm (python-tspex): Update to
d393ff497b7c14d673e792bd6c84ddd734be1239 commit.
[source]: Switch to git-fetch for tests.
[build-system]: Switch to pyproject-build-system.
[arguments]<#:phases>: Add 'remove-coverage and 'fix-seaborn phases.
[propagated-inputs]: Add python-seaborn.
[native-inputs]: Add python-pytest and python-setuptools.
Change-Id: I367198165d5d78e1f1e04708272136711e5b22b5
Reviewed-by: Nicolas Graves <ngraves@ngraves.fr>
Modified-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/python-science.scm | 47 |
1 files changed, 38 insertions, 9 deletions
diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm index f487d587ec7..7534c34730f 100644 --- a/gnu/packages/python-science.scm +++ b/gnu/packages/python-science.scm @@ -3942,16 +3942,45 @@ library.") (define-public python-tspex (package (name "python-tspex") - (version "0.6.2") - (source (origin - (method url-fetch) - (uri (pypi-uri "tspex" version)) - (sha256 - (base32 - "0x64ki1nzhms2nb8xpng92bzh5chs850dvapr93pkg05rk22m6mv")))) - (build-system python-build-system) + ;; 0.6.3 is not tagged; must be this one, as it is the latest, from the + ;; day of the release, and the commit message is "Bump to 0.6.3". + (properties '((commit . "d393ff497b7c14d673e792bd6c84ddd734be1239") + (revision . "0"))) + (version (git-version "0.6.3" + (assoc-ref properties 'revision) + (assoc-ref properties 'commit))) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/apcamargo/tspex") + (commit (assoc-ref properties 'commit)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0khhnahhn0jp9y14q6wgq0xqadqszwn1iq3y562bhfmv09f4j1ik")))) + (build-system pyproject-build-system) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'remove-coverage + (lambda _ + (substitute* "pytest.ini" + (("--cov.*") "")))) + ;; The seaborn styles have different names. + (add-after 'unpack 'fix-seaborn + (lambda _ + (substitute* (find-files "." ".py$") + (("seaborn-") "seaborn-v0_8-"))))))) + (native-inputs + (list python-pytest + python-setuptools)) (propagated-inputs - (list python-matplotlib python-numpy python-pandas python-xlrd)) + (list python-matplotlib + python-numpy + python-pandas + python-seaborn + python-xlrd)) (home-page "https://apcamargo.github.io/tspex/") (synopsis "Calculate tissue-specificity metrics for gene expression") (description |
