~ruther/guix-local

ca3d1683d72056fa9ee51d35391051d621c68e76 — Ricardo Wurmus 1 year, 4 months ago 177935d
gnu: python-biopython: Update to 1.85.

* gnu/packages/bioinformatics.scm (python-biopython): Update to 1.85.
[arguments]: Add phase 'numpy-compatibility; replace 'check phase.

Change-Id: I4e3ef0d9a357155e36ef61052af4d90f4fa95d5e
1 files changed, 12 insertions(+), 3 deletions(-)

M gnu/packages/bioinformatics.scm
M gnu/packages/bioinformatics.scm => gnu/packages/bioinformatics.scm +12 -3
@@ 4214,21 4214,30 @@ sequencing.")
(define-public python-biopython
  (package
    (name "python-biopython")
    (version "1.80")
    (version "1.85")
    (source (origin
              (method url-fetch)
              ;; use PyPi rather than biopython.org to ease updating
              (uri (pypi-uri "biopython" version))
              (sha256
               (base32
                "0hqf3jsxn2sphcx81fx7x3i69sarpjsi70fzw98f8rw7z2d5x02j"))))
                "19m03s5rwcyiq5cs1kq9dzj7qvmfvm76idgn967ygr4x0msapbsx"))))
    (build-system pyproject-build-system)
    (arguments
     '(#:phases
       (modify-phases %standard-phases
         (add-before 'check 'set-home
           ;; Some tests require a home directory to be set.
           (lambda _ (setenv "HOME" "/tmp"))))))
           (lambda _ (setenv "HOME" "/tmp")))
         (add-after 'unpack 'numpy-compatibility
           (lambda _
             (substitute* "Bio/Cluster/__init__.py"
               (("np.True_") "True"))))
         (replace 'check
           (lambda* (#:key tests? #:allow-other-keys)
             (when tests?
               (with-directory-excursion "Tests"
                 (invoke "python3" "run_tests.py" "--offline"))))))))
    (propagated-inputs
     (list python-numpy))
    (native-inputs (list python-setuptools python-wheel))