From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id gIYXD1DkIGaQrAAAe85BDQ:P1 (envelope-from ) for ; Thu, 18 Apr 2024 11:13:52 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id gIYXD1DkIGaQrAAAe85BDQ (envelope-from ) for ; Thu, 18 Apr 2024 11:13:52 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=elephly.net header.s=zoho header.b=AFFqo0oY; arc=pass ("zohomail.com:s=zohoarc:i=1"); dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-science-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-science-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=2; s=key1; d=yhetil.org; t=1713431632; a=rsa-sha256; cv=pass; b=DnXEU+BRMDymAASn/zYnk/2syVE+KAhbtUBqMoBSceFo4+V6mbqxOcXtdF1VbAkTjgz+YO Dp22wwWmBF2RrozUxI+BLnado34X9/891MgLb5lCCmMlMRzvp0RY/KZ2LWC9dVnSl93JvH ZXCbbOBGbK84ePa1oK5aIEqjA1oJWEwZGX9NBxyDpFRDp6Byua3rdgYOKRzo4eZTgL65VT RqukSqjV5b9rwbd8m8yUq+IEMWOnEaCPtTjtGe3fLu0Lqh7CDVxFxqQRGQuHp6deCdmpWK uA1uf6KAX9HR6b+/w0ThdzkapEAW48CI30FUUMvlfkBWge8Acbg3bh6taLq6Bw== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=elephly.net header.s=zoho header.b=AFFqo0oY; arc=pass ("zohomail.com:s=zohoarc:i=1"); dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-science-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-science-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1713431632; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=jBQ9hI5ZYSPkCv3rfFfdcvzvdEZWoNoeLvBxIL68jcc=; b=icT0mKTPjK53AbgTeIUXFyVwYlp/evus4rf3wXKH/0muBMC02rL5Rd3pXAiIUkrER1eSMA Jan9XR7UM0XUlz5lFX0jTS+qe8jPMXWeBd9lwwBFYJD+SL0qYCRKPnj23JeuMrcfwqOuJw vFRUBSqvCd1vIpxzhL4rUyx5zy5TS0V/FV8edtcZRBn3b7wvkkoBpN/1btI+VxLaUfBdAU 3HXKlColdkvNHPd+EJkqtuNionq6jogD3CiMOzJdqWDXHmCbVCWOZJluc0iHEYWoCvI9f0 5Dizp1xDf9cSoD8evxwxBZrkdxV+m0MR5mKal0DP73iZAsNMyWXy20Q0d0kyUw== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id E307E21592 for ; Thu, 18 Apr 2024 11:13:51 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rxNpe-0001HP-Ml; Thu, 18 Apr 2024 05:13:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rxNpb-0001GS-L0; Thu, 18 Apr 2024 05:13:23 -0400 Received: from sender4-of-o51.zoho.com ([136.143.188.51]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rxNpX-0002aJ-TN; Thu, 18 Apr 2024 05:13:23 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1713431595; cv=none; d=zohomail.com; s=zohoarc; b=b9r6NjnaTLHdA03LnC5ripvQqmKeYYG8eEU++gtD0nr1bz14ON9lBVXKMuzLI2pwluh8ssLwWukKe9zjsuqpBLwyQjySL3/ZVf4/LTfwUP3lGaguGL6ZMrq11OO402zBzmtqA2it9DlIQ9KMaUls8t3w4pzZqHYAvDwg80vM6HY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1713431595; h=Content-Type:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To; bh=jBQ9hI5ZYSPkCv3rfFfdcvzvdEZWoNoeLvBxIL68jcc=; b=HaKrn2gcQY0nZEu1aYnP7AAN/OxOqUxcuCrUCBHKMUYTAvrLR1p0JiOnlAMMYm4JQI4/bbpAAtmEr7A0XlFUR8Ezbgg3YFnoKW/RckZ16uPFUJ1PZY/tEtUoWFslpRd0MWh0OFnZ5vZwo7cukjpGhVNCSANiZzURGSRB0nQ4qm4= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1713431595; s=zoho; d=elephly.net; i=rekado@elephly.net; h=From:From:To:To:Cc:Cc:Subject:Subject:In-Reply-To:References:Date:Date:Message-ID:MIME-Version:Content-Type:Message-Id:Reply-To; bh=jBQ9hI5ZYSPkCv3rfFfdcvzvdEZWoNoeLvBxIL68jcc=; b=AFFqo0oYyHRIz+GM2WO/8Lu84wtwH3Gsdxe6+bQoy5QFtB2vso2aWLYXNXkUoF6W l2+PHCu38FT4kujjlhznIe50CKa3jBxSwm/8VfN6ip/Bbup2a6NS09jFP7gfcgvyIXf +zUyC+1icpvD4ZZ7Ih7hOFu4wYlpFrhyJuOqnUPM= Received: by mx.zohomail.com with SMTPS id 171343159373872.83726183323972; Thu, 18 Apr 2024 02:13:13 -0700 (PDT) From: Ricardo Wurmus To: Alexis Simon via Guix-Science Cc: Simon Tournier , help-guix , Alexis Simon Subject: Re: packaging python-cyvcf2 In-Reply-To: <7b845ef7-f15e-45b9-9a31-e645ce736ec4@runbox.com> (Alexis Simon via Guix-Science's message of "Fri, 22 Mar 2024 12:38:41 -0700") References: <87il1eb867.fsf@gmail.com> <7b845ef7-f15e-45b9-9a31-e645ce736ec4@runbox.com> User-Agent: mu4e 1.12.2; emacs 29.3 Date: Thu, 18 Apr 2024 11:13:10 +0200 Message-ID: <877cgv3uft.fsf@elephly.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-ZohoMailClient: External X-Zoho-Virus-Status: 1 Received-SPF: pass client-ip=136.143.188.51; envelope-from=rekado@elephly.net; helo=sender4-of-o51.zoho.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_FILL_THIS_FORM_SHORT=0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-science@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-science-bounces+larch=yhetil.org@gnu.org Sender: guix-science-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Spam-Score: -10.42 X-Migadu-Queue-Id: E307E21592 X-Migadu-Spam-Score: -10.42 X-Migadu-Scanner: mx10.migadu.com X-TUID: OYpN7iYiWYgf --=-=-= Content-Type: text/plain Hi, > I've abandoned running the tests though, I'm hitting a module not > found error. pytest doesn't manage to load the just built module, > probably an issue with the paths. It's an actual problem with the build. You need to build the cython extension first. I've attached the working package definition. I'd like to add this to gnu/packages/bioinformatics.scm. I'd like to set authorship of the commit to you. Is the name and email address I used for attribution correct? (See the attached commit.) -- Ricardo --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: inline; filename=0001-gnu-Add-python-cyvcf2.patch Content-Transfer-Encoding: quoted-printable >From 12af58e7f29c5a96888ecba7d264669940f1f259 Mon Sep 17 00:00:00 2001 Message-ID: <12af58e7f29c5a96888ecba7d264669940f1f259.1713431532.git.rekado= @elephly.net> From: Alexis Simon Date: Thu, 18 Apr 2024 11:10:22 +0200 Subject: [PATCH] gnu: Add python-cyvcf2. * gnu/packages/bioinformatics.scm (python-cyvcf2): New variable. Co-authored-by: Ricardo Wurmus Change-Id: I0db07e7b5840f5c1f5c68512ffabb3d6b39ab95c --- gnu/packages/bioinformatics.scm | 53 +++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.= scm index 448ea5d6de..d2e0656435 100644 --- a/gnu/packages/bioinformatics.scm +++ b/gnu/packages/bioinformatics.scm @@ -25,6 +25,7 @@ ;;; Copyright =C2=A9 2021 Felix Gruber ;;; Copyright =C2=A9 2022, 2023 Navid Afkhami ;;; Copyright =C2=A9 2022 Antero Mejr +;;; Copyright =C2=A9 2024 Alexis Simon ;;; ;;; This file is part of GNU Guix. ;;; @@ -1916,6 +1917,58 @@ (define-public python-cmseq and sequence consensus.") (license license:expat))) =20 +(define-public python-cyvcf2 + (package + (name "python-cyvcf2") + (version "0.30.28") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/brentp/cyvcf2") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "16yhfax509zyip8kkq2b0lflx5bdq5why7d785ayrqyzzq2rxqkk")) + (modules '((guix build utils))) + (snippet + ;; Delete bundled library + '(delete-file-recursively "htslib")))) + (build-system pyproject-build-system) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (add-before 'check 'build-extensions + (lambda _ + ;; Cython extensions have to be built before running the tes= ts. + (invoke "python" "setup.py" "build_ext" "--inplace"))) + (add-after 'unpack 'fix-setup + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "setup.py" + (("^htslib_include_dirs =3D.*") + (string-append "htslib_include_dirs =3D [\"" + #$(this-package-input "htslib") "/include\= "]\n")) + (("lib_name =3D \"libhts.so\"") + (string-append "lib_name =3D \"" + (search-input-file inputs "lib/libhts.so.3= ") + "\"\n"))))) + (add-before 'build 'use-system-htslib-package + (lambda _ + (setenv "CYTHONIZE" "1") + (setenv "CYVCF2_HTSLIB_MODE" "EXTERNAL")))))) + (inputs (list curl htslib libdeflate openssl zlib)) + (native-inputs (list python-cython python-pytest)) + (propagated-inputs + (list python-click + python-coloredlogs + python-numpy)) + (home-page "https://github.com/brentp/cyvcf2/") + (synopsis "Fast vcf file parsing with Cython and htslib") + (description "Cyvcf2 is a Cython wrapper around htslib built for fast +parsing of Variant Call Format (VCF) files.") + (license license:expat))) + (define-public python-decoupler-py ;; This latest commit fixes a bug in test_omnip.py. (let ((commit "459b235348ddd9135217a3722d9dd1caa9a14ace") base-commit: 7bed290fdfd830d690daf065de6d2ecab73309d9 prerequisite-patch-id: 5da8ef187becff2c53ea5f2031e8825db623eb65 prerequisite-patch-id: 13be25d244e0bf4742f2713c79b657a10206fd4a prerequisite-patch-id: 5eac5ecb9efd0643ee72851a87db05636faadb22 prerequisite-patch-id: c991e73ae60aab13d5b364946213cd75acff1787 prerequisite-patch-id: 88eb87c18d5e09956462a19515d2efb22d508cb4 prerequisite-patch-id: 6af49e118b9dbcc75d410d97c1a6f6e13d81bafe prerequisite-patch-id: 5444dc17e9de17cdd39e24c969589e5a94488076 prerequisite-patch-id: b3e368fe34327e828bc15d07383f9adf2e54102a prerequisite-patch-id: 1cbd95e12fd254f4d301786938e3734106949d1e prerequisite-patch-id: fc39a6a4a400c1d4b094cd1d3029ecfbe2f70e6d prerequisite-patch-id: 02cc7b0f2140f6342ed1d32a1f09cd7b2e61d2dd prerequisite-patch-id: b0c59b60fcda7ce3c4b76a2f679db0403ac4b1a5 prerequisite-patch-id: 2104d5a932eeb3def4e438643469c97f8d5703ac prerequisite-patch-id: 98982539329a10f4947ae1e412b9543ad15fdc3d prerequisite-patch-id: 577d37113f5124f1bfc50df84021190ed7d75edf prerequisite-patch-id: e049fd1dac3aac5fc727237642b6d385fd6bf33f prerequisite-patch-id: 98608c3b9c9f927167b0aad70567e6ee42fef7e5 prerequisite-patch-id: 4627ef56075e71c4eeb975c4a26ee1e749ee69b0 prerequisite-patch-id: e43d1ce95f721374308a3f05dc436e801e96cf37 prerequisite-patch-id: 51c0cfd16f8214e059d05a8576842f902fced7c4 prerequisite-patch-id: 5bb19f2748c376544fc69aafb74e2c5f192e5426 prerequisite-patch-id: 894cce561d9bdddf0c81d80b419544cdd2d8142b prerequisite-patch-id: aeca519cc08fb04843001e32fa8b69eb2b082548 prerequisite-patch-id: 5e9a637f0716105f3d00d44d1d8c24436f5cbb4f prerequisite-patch-id: e5bf09d839ad19c3d13a81f3a26751663f8766c0 prerequisite-patch-id: eb002e03793d80ee3e13a6f03340bd107ec3a3ea prerequisite-patch-id: d9c2389f4ec6e9899d5456853cb40fa2be1cc22d --=20 2.41.0 --=-=-=--