~ruther/guix-local

02dd2b8552d0d695a7a49b23e179c32b2b20d0d6 — Hugo Buddelmeijer 2 months ago 36c5be2
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>
1 files changed, 38 insertions(+), 9 deletions(-)

M gnu/packages/python-science.scm
M gnu/packages/python-science.scm => gnu/packages/python-science.scm +38 -9
@@ 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