guix-commits
[Top][All Lists]
Advanced

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

02/02: gnu: Add python-pyrodigal.


From: guix-commits
Subject: 02/02: gnu: Add python-pyrodigal.
Date: Mon, 6 May 2024 04:38:38 -0400 (EDT)

rekado pushed a commit to branch master
in repository guix.

commit 00aa6b5a3c1505b033d19c6d3a3021d6d6ecb31b
Author: nafkhamdc <navid.afkhami@mdc-berlin.de>
AuthorDate: Fri May 3 09:53:12 2024 +0000

    gnu: Add python-pyrodigal.
    
    * gnu/packages/bioinformatics.scm (python-pyrodigal): New variable.
    
    Co-authored-by: Ricardo Wurmus <rekado@elephly.net>
    
    Change-Id: Iaa0bdb4b918d93f990d5b904f1df3a3f910726b0
---
 gnu/packages/bioinformatics.scm | 41 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)

diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm
index 41e8f07603..3dff39e866 100644
--- a/gnu/packages/bioinformatics.scm
+++ b/gnu/packages/bioinformatics.scm
@@ -17852,6 +17852,47 @@ bound.")
 bgzipped text file that contains a pair of genomic coordinates per line.")
     (license license:expat)))
 
+(define-public python-pyrodigal
+  (package
+    (name "python-pyrodigal")
+    (version "3.3.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/althonos/pyrodigal";)
+             (commit (string-append "v" version))
+             (recursive? #t)))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "10vxbm9i33wari0ifsr78xnfn7d0yqwzqpc5pchirjflf1mmnr6w"))))
+    (build-system pyproject-build-system)
+    (arguments
+     (list
+      #:modules '((ice-9 ftw)
+                  (srfi srfi-1)
+                  (srfi srfi-26)
+                  (guix build utils)
+                  (guix build pyproject-build-system))
+      #:phases
+      #~(modify-phases %standard-phases
+          (replace 'check
+            (lambda* (#:key tests? #:allow-other-keys)
+              (when tests?
+                (let ((cwd (getcwd))
+                      (libdir (find (cut string-prefix? "lib." <>)
+                                    (scandir "build"))))
+                  (with-directory-excursion (string-append cwd "/build/" 
libdir)
+                    (invoke "python3" "-m" "unittest" "pyrodigal.tests" 
"-vv")))))))))
+    (propagated-inputs (list python-archspec python-importlib-resources))
+    (native-inputs (list python-cython-3 python-mock python-unittest2))
+    (home-page "https://github.com/althonos/pyrodigal";)
+    (synopsis "Cython bindings and Python interface for Prodigal")
+    (description
+     "This package offers Cython bindings and a Python interface for Prodigal.
+ Prodigal is an ORF finder designed for both genomes and metagenomes.")
+    (license license:gpl3)))
+
 (define-public python-pyfaidx
   (package
     (name "python-pyfaidx")



reply via email to

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