guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

07/18: gnu: python-dna-features-viewer: Update to 3.1.1.


From: guix-commits
Subject: 07/18: gnu: python-dna-features-viewer: Update to 3.1.1.
Date: Mon, 12 Dec 2022 09:25:53 -0500 (EST)

rekado pushed a commit to branch wip-python-graphviz
in repository guix.

commit 58796719a056638d8405192e5af71cc3d516216b
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Sat Dec 10 14:39:57 2022 +0100

    gnu: python-dna-features-viewer: Update to 3.1.1.
    
    * gnu/packages/bioinformatics.scm (python-dna-features-viewer):
    Update to 3.1.1.
    [build-system]: Use pyproject-build-system.
    [arguments]: Add build phase to fix a compatibility problem with biopython.
    [propagated-inputs]: Add python-packaging.
---
 gnu/packages/bioinformatics.scm | 23 ++++++++++++++++++-----
 1 file changed, 18 insertions(+), 5 deletions(-)

diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm
index ea33311a2c..371bf1077a 100644
--- a/gnu/packages/bioinformatics.scm
+++ b/gnu/packages/bioinformatics.scm
@@ -16597,18 +16597,31 @@ feature is fast retrieval of range queries into numpy 
arrays.")
 (define-public python-dna-features-viewer
   (package
     (name "python-dna-features-viewer")
-    (version "3.0.3")
+    (version "3.1.1")
     (source
      (origin
        (method url-fetch)
        (uri (pypi-uri "dna_features_viewer" version))
        (sha256
         (base32
-         "0vci6kg2id6r6rh3cifq7ccnh7j0mb8iqg3hji6rva0ayrdqzafc"))))
-    (build-system python-build-system)
-    (arguments '(#:tests? #false)) ; there are none
+         "10a5pmh73spdgfml88zjqg1rn2j2zdxn06ir8a5q3arspyqvyqcb"))))
+    (build-system pyproject-build-system)
+    (arguments
+     (list
+      #:tests? #false ;there are none
+      #:phases
+      '(modify-phases %standard-phases
+         ;; See 
https://github.com/Edinburgh-Genome-Foundry/DnaFeaturesViewer/issues/73
+         ;; and 
https://github.com/Edinburgh-Genome-Foundry/DnaFeaturesViewer/pull/74
+         (add-after 'unpack 'fix-biopython-compatibility
+           (lambda _
+             (substitute* "dna_features_viewer/biotools.py"
+               (("zip\\(aa1 \\+ \"\\*\", aa3 \\+ \\[\"\\*\"\\]\\)")
+                "zip(aa1 + ('*',), aa3 + ('*',))")))))))
     (propagated-inputs
-     (list python-biopython python-matplotlib))
+     (list python-biopython
+           python-matplotlib
+           python-packaging))
     (home-page
      "https://github.com/Edinburgh-Genome-Foundry/DnaFeaturesViewer";)
     (synopsis "Plot features from DNA sequences")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]