Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-biology/pysam/, sci-biology/pysam/files/
Date: Mon, 11 Oct 2021 14:55:34
Message-Id: 1633964108.3b93bba18c14598747eda127476f093040e6b3b6.soap@gentoo
1 commit: 3b93bba18c14598747eda127476f093040e6b3b6
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Mon Oct 11 14:55:08 2021 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Mon Oct 11 14:55:08 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3b93bba1
7
8 sci-biology/pysam: drop 0.16.0.1-r1
9
10 Closes: https://bugs.gentoo.org/812242
11 Signed-off-by: David Seifert <soap <AT> gentoo.org>
12
13 sci-biology/pysam/Manifest | 1 -
14 .../pysam/files/pysam-0.16.0.1-fix-tests.patch | 37 -------------
15 sci-biology/pysam/pysam-0.16.0.1-r1.ebuild | 60 ----------------------
16 3 files changed, 98 deletions(-)
17
18 diff --git a/sci-biology/pysam/Manifest b/sci-biology/pysam/Manifest
19 index 1e305c998da..91ca2cac79c 100644
20 --- a/sci-biology/pysam/Manifest
21 +++ b/sci-biology/pysam/Manifest
22 @@ -1,2 +1 @@
23 -DIST pysam-0.16.0.1.tar.gz 3294073 BLAKE2B 8df1c9b061b0d4b3962ff4b0e30f1589e02d7df41ce362bff861596d3599bf800bb16b2fa4de326fc07102dc7801b48c6b821e5d47e694a3536bec2c5b1cfece SHA512 5cebb9f3bc8dc6186a629e91423a3c8cb802af6529b943fcd880e056661ec6ee2a00de789cf144c9e40b9d1ef2459c0e06ce27a1b9eab8e2875d2087f275af28
24 DIST pysam-0.17.0.tar.gz 3579324 BLAKE2B 6b88fe771350f20fa7c90a4c02c60fefd6a34d979c687fce1e34a17e1ff203c7d2d07e36b64f7a73f99676b805334df7f049932ce15e26362a5214da03435d64 SHA512 16740f08fb68a1f24656454b834dd9ac52ad9f864f307564566fc244bbd2efb7cb17107b2e85ca5c56af817918a138d1c071533de1b80e5bba42b01bbad7f552
25
26 diff --git a/sci-biology/pysam/files/pysam-0.16.0.1-fix-tests.patch b/sci-biology/pysam/files/pysam-0.16.0.1-fix-tests.patch
27 deleted file mode 100644
28 index 9d269878e65..00000000000
29 --- a/sci-biology/pysam/files/pysam-0.16.0.1-fix-tests.patch
30 +++ /dev/null
31 @@ -1,37 +0,0 @@
32 ---- a/tests/pysam_data/Makefile
33 -+++ b/tests/pysam_data/Makefile
34 -@@ -3,7 +3,7 @@
35 - BAI=$(BAM:%.bam=%.bam.bai)
36 - CRAM=ex1.cram ex2.cram ex3.cram
37 - CRAI=$(CRAM:%.cram=%.cram.crai)
38 --NO_PG:=$(findstring --no-PG,$(shell samtools view))
39 -+NO_PG:=--no-PG
40 -
41 - # ex2.bam - bam file without index
42 -
43 ---- a/tests/tabix_test.py
44 -+++ b/tests/tabix_test.py
45 -@@ -14,6 +14,7 @@
46 - import subprocess
47 - import glob
48 - import re
49 -+import pytest
50 - from TestUtils import checkBinaryEqual, checkGZBinaryEqual, check_url, \
51 - load_and_convert, TABIX_DATADIR, get_temp_filename
52 -
53 -@@ -1014,6 +1015,7 @@
54 - globals()[n] = type(n, (TestVCFFromVariantFile,), dict(filename=vcf_file,))
55 -
56 -
57 -+@×××××××××××.skip(reason="requires internet connectivity")
58 - class TestRemoteFileHTTP(unittest.TestCase):
59 -
60 - url = "http://genserv.anat.ox.ac.uk/downloads/pysam/test/example.gtf.gz"
61 -@@ -1053,6 +1055,7 @@
62 - self.assertEqual(list(self.local_file.header), [])
63 -
64 -
65 -+@×××××××××××.skip(reason="requires internet connectivity")
66 - class TestRemoteFileHTTPWithHeader(TestRemoteFileHTTP):
67 -
68 - url = "http://genserv.anat.ox.ac.uk/downloads/pysam/test/example_comments.gtf.gz"
69
70 diff --git a/sci-biology/pysam/pysam-0.16.0.1-r1.ebuild b/sci-biology/pysam/pysam-0.16.0.1-r1.ebuild
71 deleted file mode 100644
72 index e27c998bb91..00000000000
73 --- a/sci-biology/pysam/pysam-0.16.0.1-r1.ebuild
74 +++ /dev/null
75 @@ -1,60 +0,0 @@
76 -# Copyright 1999-2021 Gentoo Authors
77 -# Distributed under the terms of the GNU General Public License v2
78 -
79 -EAPI=7
80 -
81 -PYTHON_COMPAT=( python3_{7..9} )
82 -
83 -inherit distutils-r1
84 -
85 -DESCRIPTION="Python interface for the SAM/BAM sequence alignment and mapping format"
86 -HOMEPAGE="
87 - https://github.com/pysam-developers/pysam
88 - https://pypi.org/project/pysam/"
89 -SRC_URI="https://github.com/pysam-developers/pysam/archive/v${PV}.tar.gz -> ${P}.tar.gz"
90 -
91 -LICENSE="MIT"
92 -SLOT="0"
93 -KEYWORDS="~amd64 ~x86"
94 -
95 -RDEPEND="=sci-libs/htslib-1.10*:="
96 -DEPEND="${RDEPEND}"
97 -BDEPEND="
98 - dev-python/cython[${PYTHON_USEDEP}]
99 - <dev-python/setuptools-58[${PYTHON_USEDEP}]
100 - test? (
101 - =sci-biology/bcftools-1.10*
102 - =sci-biology/samtools-1.10*
103 - )"
104 -
105 -distutils_enable_tests pytest
106 -
107 -DISTUTILS_IN_SOURCE_BUILD=1
108 -
109 -python_prepare_all() {
110 - # unbundle htslib
111 - export HTSLIB_MODE="external"
112 - export HTSLIB_INCLUDE_DIR="${EPREFIX}"/usr/include
113 - export HTSLIB_LIBRARY_DIR="${EPREFIX}"/usr/$(get_libdir)
114 - rm -r htslib || die
115 -
116 - # prevent setup.py from adding RPATHs (except $ORIGIN)
117 - sed -e '/runtime_library_dirs=htslib_library_dirs/d' \
118 - -i setup.py || die
119 -
120 - eapply "${FILESDIR}"/${PN}-0.16.0.1-fix-tests.patch
121 -
122 - if use test; then
123 - einfo "Building test data"
124 - emake -C tests/pysam_data
125 - emake -C tests/cbcf_data
126 - fi
127 -
128 - distutils-r1_python_prepare_all
129 -}
130 -
131 -python_compile() {
132 - # breaks with parallel build
133 - local MAKEOPTS=-j1
134 - distutils-r1_python_compile
135 -}