all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Navid Afkhami <navid.afkhami@mdc-berlin.de>
To: 74346@debbugs.gnu.org
Cc: Navid Afkhami <navid.afkhami@mdc-berlin.de>
Subject: [bug#74346] [PATCH] gnu: Add python-pybio.
Date: Wed, 13 Nov 2024 17:40:32 +0000	[thread overview]
Message-ID: <0209ff8f7b80433fe8ab131a7de32a5ea049bbf3.1731519632.git.navid.afkhami@mdc-berlin.de> (raw)

* gnu/packages/bioinformatics.scm (python-pybio): New variable.

Change-Id: I8f5c9cb6c7bb03cbc95386e67d46b1bdd78e01f2
---
 gnu/packages/bioinformatics.scm | 51 +++++++++++++++++++++++++++++++++
 1 file changed, 51 insertions(+)

diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm
index 599d22c51e..ddcb56d0c9 100644
--- a/gnu/packages/bioinformatics.scm
+++ b/gnu/packages/bioinformatics.scm
@@ -3223,6 +3223,57 @@ (define-public python-pybedtools
     ;; licensed lgpl2.1+
     (license (list license:expat license:lgpl2.1+))))
 
+(define-public python-pybio
+  (let ((commit "c91fddc483da535d5097364405d76ad9b1bde07f")
+        (revision "1"))
+    (package
+      (name "python-pybio")
+      (version (git-version "0.3.12" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://github.com/grexor/pybio")
+               (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32 "0s3n1bqp25zf5pzfsj0x1kqr6i2a6iffpb8hkjwhyvjqrxf5d9rk"))))
+      (build-system pyproject-build-system)
+      (arguments
+       (list
+        #:tests? #f ;There are no automated tests
+        #:phases #~(modify-phases %standard-phases
+                     (add-before 'check 'set-home
+                       ;; The sanity check requires a HOME directory
+                       (lambda _
+                         (setenv "HOME" "/tmp")))
+                     (add-after 'unpack 'adjust-requirements
+                       (lambda _
+                         (substitute* "setup.py"
+                           (("bs4")
+                            "beautifulsoup4"))))
+                     (add-after 'unpack 'build-reproducibly
+                       (lambda _
+                         (setenv "GUIX_BUILD" "yes")
+                         (substitute* "pybio/__init__.py"
+                           (("^pybio.core.genomes.init\\(\\)" m)
+                            (string-append m
+                             " if not os.getenv('GUIX_BUILD') else None"))))))))
+      (propagated-inputs (list python-beautifulsoup4 python-numpy
+                               python-psutil python-pysam python-requests))
+      (native-inputs (list python-pytest))
+      (home-page "https://github.com/grexor/pybio")
+      (synopsis "Basic genomics toolset")
+      (description
+       "This tool provides a Python framework to streamline genomics operations.
+It offers a direct interface to Ensembl genome assemblies and annotations, while
+also accommodating custom genomes via FASTA/GTF inputs.  The primary objective
+of pybio is to simplify genome management.  It achieves this by providing
+automatic download of Ensembl genome assemblies and annotation, provides
+Python genomic feature search and sequence retrieval from the managed
+genomes, STAR indexing and mapping and more.")
+      (license license:gpl3+))))
+
 (define-public python-ega-download-client
   (package
     (name "python-ega-download-client")

base-commit: 07cd046c209f192032b425d2ee44f6025bff63a1
-- 
2.43.0





             reply	other threads:[~2024-11-13 17:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-13 17:40 Navid Afkhami [this message]
2024-11-13 18:13 ` bug#74346: [PATCH] gnu: Add python-pybio Ricardo Wurmus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0209ff8f7b80433fe8ab131a7de32a5ea049bbf3.1731519632.git.navid.afkhami@mdc-berlin.de \
    --to=navid.afkhami@mdc-berlin.de \
    --cc=74346@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.