1 |
commit: 9bae68348aed02603ef5be08031cc7a7d7156cfb |
2 |
Author: Horea Christian <chr <AT> chymera <DOT> eu> |
3 |
AuthorDate: Fri Aug 26 16:52:57 2022 +0000 |
4 |
Commit: Horea Christian <horea.christ <AT> gmail <DOT> com> |
5 |
CommitDate: Fri Aug 26 16:52:57 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=9bae6834 |
7 |
|
8 |
sci-biology/bidsschematools: new package, add 0.4.0 |
9 |
|
10 |
Signed-off-by: Horea Christian <chr <AT> chymera.eu> |
11 |
|
12 |
.../bidsschematools/bidsschematools-0.4.0.ebuild | 37 ++++++++++++++++++++++ |
13 |
sci-biology/bidsschematools/metadata.xml | 19 +++++++++++ |
14 |
2 files changed, 56 insertions(+) |
15 |
|
16 |
diff --git a/sci-biology/bidsschematools/bidsschematools-0.4.0.ebuild b/sci-biology/bidsschematools/bidsschematools-0.4.0.ebuild |
17 |
new file mode 100644 |
18 |
index 000000000..735f130e9 |
19 |
--- /dev/null |
20 |
+++ b/sci-biology/bidsschematools/bidsschematools-0.4.0.ebuild |
21 |
@@ -0,0 +1,37 @@ |
22 |
+# Copyright 2022 Gentoo Authors |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=8 |
26 |
+ |
27 |
+DISTUTILS_USE_PEP517=setuptools |
28 |
+PYTHON_COMPAT=( python3_{8..10} ) |
29 |
+ |
30 |
+inherit distutils-r1 |
31 |
+ |
32 |
+DESCRIPTION="A Python library for working with the BIDS schema" |
33 |
+HOMEPAGE="https://github.com/bids-standard/bids-specification" |
34 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
35 |
+ |
36 |
+LICENSE="MIT" |
37 |
+SLOT="0" |
38 |
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
39 |
+IUSE="render" |
40 |
+ |
41 |
+RDEPEND=" |
42 |
+ dev-python/pyyaml[${PYTHON_USEDEP}] |
43 |
+ render? ( |
44 |
+ dev-python/tabulate[${PYTHON_USEDEP}] |
45 |
+ dev-python/pandas[${PYTHON_USEDEP}] |
46 |
+ ) |
47 |
+" |
48 |
+DEPEND="" |
49 |
+ |
50 |
+distutils_enable_tests pytest |
51 |
+ |
52 |
+src_prepare() { |
53 |
+ if ! use render; then |
54 |
+ rm "${S}/bidsschematools/render.py" |
55 |
+ rm "${S}/bidsschematools/tests/test_render.py" |
56 |
+ fi |
57 |
+ default |
58 |
+} |
59 |
|
60 |
diff --git a/sci-biology/bidsschematools/metadata.xml b/sci-biology/bidsschematools/metadata.xml |
61 |
new file mode 100644 |
62 |
index 000000000..3fac5f14b |
63 |
--- /dev/null |
64 |
+++ b/sci-biology/bidsschematools/metadata.xml |
65 |
@@ -0,0 +1,19 @@ |
66 |
+<?xml version="1.0" encoding="UTF-8"?> |
67 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
68 |
+<pkgmetadata> |
69 |
+ <maintainer type="person"> |
70 |
+ <email>gentoo@×××××××.eu</email> |
71 |
+ <name>Horea Christian</name> |
72 |
+ </maintainer> |
73 |
+ <maintainer type="project"> |
74 |
+ <email>sci@g.o</email> |
75 |
+ <name>Gentoo Science Project</name> |
76 |
+ </maintainer> |
77 |
+ <upstream> |
78 |
+ <remote-id type="github">bids-standard/bids-specification</remote-id> |
79 |
+ <remote-id type="pypi">bidsschematools</remote-id> |
80 |
+ </upstream> |
81 |
+ <use> |
82 |
+ <flag name="render">Support for schema table rendering</flag> |
83 |
+ </use> |
84 |
+</pkgmetadata> |