~ruther/guix-local

3228266ed53285ef22b9898c96a01f4e62955c2e — Sharlatan Hellseher 3 months ago 09407e2
gnu: python-biopython: Update to 1.86.

* gnu/packages/bioinformatics.scm (python-biopython): Update to 1.86,
use G-Expressions.
[arguments] <phases>: Remove 'numpy-compatibility.
[native-inputs]: Remove python-wheel.

Change-Id: I060455d474934b6b09c5adbbdec213b89496d9a5
Signed-off-by: Rutherther <rutherther@ditigal.xyz>
1 files changed, 16 insertions(+), 17 deletions(-)

M gnu/packages/bioinformatics.scm
M gnu/packages/bioinformatics.scm => gnu/packages/bioinformatics.scm +16 -17
@@ 4409,33 4409,32 @@ sequencing.")
(define-public python-biopython
  (package
    (name "python-biopython")
    (version "1.85")
    (version "1.86")
    (source (origin
              (method url-fetch)
              ;; use PyPi rather than biopython.org to ease updating
              (uri (pypi-uri "biopython" version))
              (sha256
               (base32
                "19m03s5rwcyiq5cs1kq9dzj7qvmfvm76idgn967ygr4x0msapbsx"))))
                "1zwj1lfpinl1iv5kamdsiwfpdic3ylzd169gmdlfqb2dd9c0p9ck"))))
    (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")))
         (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"))))))))
     (list
      ;; tests: 500 passed
      #:phases
      #~(modify-phases %standard-phases
          (add-before 'check 'set-home
            ;; Some tests require a home directory to be set.
            (lambda _ (setenv "HOME" "/tmp")))
          (replace 'check
            (lambda* (#:key tests? #:allow-other-keys)
              (when tests?
                (with-directory-excursion "Tests"
                  (invoke "python" "run_tests.py" "--offline"))))))))
    (native-inputs
     (list python-setuptools))
    (propagated-inputs
     (list python-numpy))
    (native-inputs (list python-setuptools python-wheel))
    (home-page "https://biopython.org/")
    (synopsis "Tools for biological computation in Python")
    (description