guix-commits
[Top][All Lists]
Advanced

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

01/12: gnu: python-pyfaidx: Update to 0.7.2.1.


From: guix-commits
Subject: 01/12: gnu: python-pyfaidx: Update to 0.7.2.1.
Date: Fri, 5 May 2023 09:40:26 -0400 (EDT)

rekado pushed a commit to branch master
in repository guix.

commit 7dc853269f93093ffe94594b5e9b41fca6ddc2d5
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Fri May 5 12:56:31 2023 +0200

    gnu: python-pyfaidx: Update to 0.7.2.1.
    
    * gnu/packages/bioinformatics.scm (python-pyfaidx): Update to 0.7.2.1.
    [build-system]: Use pyproject-build-system.
    [arguments]: Ignore tests that require large downloads.
    [native-inputs]: Remove python-six; add python-fsspec, python-pytest,
    python-pytest-cov, python-mock, and python-numpy.
---
 gnu/packages/bioinformatics.scm | 37 ++++++++++++++++++++++++++-----------
 1 file changed, 26 insertions(+), 11 deletions(-)

diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm
index 108ac1bdfd..dcada630a0 100644
--- a/gnu/packages/bioinformatics.scm
+++ b/gnu/packages/bioinformatics.scm
@@ -14972,17 +14972,32 @@ bgzipped text file that contains a pair of genomic 
coordinates per line.")
 (define-public python-pyfaidx
   (package
     (name "python-pyfaidx")
-    (version "0.5.8")
-    (source
-     (origin
-       (method url-fetch)
-       (uri (pypi-uri "pyfaidx" version))
-       (sha256
-        (base32
-         "038xi3a6zvrxbyyfpp64ka8pcjgsdq4fgw9cl5lpxbvmm1bzzw2q"))))
-    (build-system python-build-system)
-    (propagated-inputs
-     (list python-six))
+    (version "0.7.2.1")
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "pyfaidx" version))
+              (sha256
+               (base32
+                "182ia2zg026lgphv68agxm9imw7649z9pdhfn8zkalrxkq5d5w1h"))))
+    (build-system pyproject-build-system)
+    (arguments
+     (list
+      #:test-flags
+      ;; These tests require the download of large fasta.gz files.
+      '(list "--ignore=tests/test_Fasta_bgzip.py")
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'unpack 'fix-version
+            (lambda _
+              (substitute* "pyproject.toml"
+                (("dynamic = \\[\"version\"\\]")
+                 (string-append "version = \"" #$version "\""))))))))
+    (native-inputs
+     (list python-fsspec
+           python-mock
+           python-numpy
+           python-pytest
+           python-pytest-cov))
     (home-page "http://mattshirley.com";)
     (synopsis "Random access to fasta subsequences")
     (description



reply via email to

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