Gentoo Archives: gentoo-commits

From: Horea Christian <horea.christ@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-biology/behaviopy/
Date: Mon, 08 Apr 2019 03:23:00
Message-Id: 1554693753.7acf6c633d2afbe2ddf796ca0920a6dacdf72fcb.chymera@gentoo
1 commit: 7acf6c633d2afbe2ddf796ca0920a6dacdf72fcb
2 Author: Horea Christian <horea.christ <AT> yandex <DOT> com>
3 AuthorDate: Mon Apr 8 03:22:33 2019 +0000
4 Commit: Horea Christian <horea.christ <AT> gmail <DOT> com>
5 CommitDate: Mon Apr 8 03:22:33 2019 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=7acf6c63
7
8 sci-biology/behaviopy: new package
9
10 Package-Manager: Portage-2.3.62, Repoman-2.3.12
11 Signed-off-by: Horea Christian <horea.christ <AT> yandex.com>
12
13 sci-biology/behaviopy/behaviopy-0.1.ebuild | 43 +++++++++++++++++++++++++++
14 sci-biology/behaviopy/behaviopy-9999.ebuild | 45 +++++++++++++++++++++++++++++
15 sci-biology/behaviopy/metadata.xml | 26 +++++++++++++++++
16 3 files changed, 114 insertions(+)
17
18 diff --git a/sci-biology/behaviopy/behaviopy-0.1.ebuild b/sci-biology/behaviopy/behaviopy-0.1.ebuild
19 new file mode 100644
20 index 000000000..bbbdd78fb
21 --- /dev/null
22 +++ b/sci-biology/behaviopy/behaviopy-0.1.ebuild
23 @@ -0,0 +1,43 @@
24 +# Copyright 1999-2019 Gentoo Authors
25 +# Distributed under the terms of the GNU General Public License v2
26 +
27 +EAPI=7
28 +
29 +PYTHON_COMPAT=( python{2_7,3_5,3_6} )
30 +
31 +inherit distutils-r1
32 +
33 +DESCRIPTION="Neuroimaging tools for Python"
34 +HOMEPAGE="https://github.com/TheChymera/behaviopy"
35 +SRC_URI="https://github.com/TheChymera/behaviopy/archive/${PV}.tar.gz -> ${P}.tar.gz"
36 +
37 +LICENSE="GPL-3"
38 +SLOT="0"
39 +IUSE="evaluation test"
40 +KEYWORDS="~amd64 ~x86"
41 +
42 +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
43 +RDEPEND="
44 + dev-python/matplotlib[${PYTHON_USEDEP}]
45 + dev-python/numpy[${PYTHON_USEDEP}]
46 + dev-python/pandas[${PYTHON_USEDEP}]
47 + dev-python/seaborn[${PYTHON_USEDEP}]
48 + dev-python/statsmodels[${PYTHON_USEDEP}]
49 + sci-libs/scipy[${PYTHON_USEDEP}]
50 + "
51 +
52 +src_prepare() {
53 + if ! use evaluation; then
54 + rm behaviopy/evaluation.py || die
55 + fi
56 + default
57 +}
58 +
59 +python_test() {
60 + cd behaviopy/examples
61 + echo "backend : Agg" > matplotlibrc || die
62 + for i in *py; do
63 + echo "Executing $i"
64 + ${EPYTHON} $i || die
65 + done
66 +}
67
68 diff --git a/sci-biology/behaviopy/behaviopy-9999.ebuild b/sci-biology/behaviopy/behaviopy-9999.ebuild
69 new file mode 100644
70 index 000000000..2aee7c999
71 --- /dev/null
72 +++ b/sci-biology/behaviopy/behaviopy-9999.ebuild
73 @@ -0,0 +1,45 @@
74 +# Copyright 1999-2019 Gentoo Authors
75 +# Distributed under the terms of the GNU General Public License v2
76 +
77 +EAPI=7
78 +
79 +PYTHON_COMPAT=( python{2_7,3_5,3_6} )
80 +
81 +inherit distutils-r1 git-r3
82 +
83 +DESCRIPTION="Neuroimaging tools for Python"
84 +HOMEPAGE="https://github.com/TheChymera/behaviopy"
85 +SRC_URI=""
86 +EGIT_REPO_URI="https://github.com/TheChymera/behaviopy"
87 +
88 +LICENSE="GPL-3"
89 +SLOT="0"
90 +IUSE="evaluation test"
91 +KEYWORDS=""
92 +
93 +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
94 +RDEPEND="
95 + dev-python/matplotlib[${PYTHON_USEDEP}]
96 + dev-python/numpy[${PYTHON_USEDEP}]
97 + dev-python/pandas[${PYTHON_USEDEP}]
98 + dev-python/seaborn[${PYTHON_USEDEP}]
99 + dev-python/statsmodels[${PYTHON_USEDEP}]
100 + sci-libs/scipy[${PYTHON_USEDEP}]
101 + "
102 + #evaluation? ( sci-biology/psychopy[${PYTHON_USEDEP}] )
103 +
104 +src_prepare() {
105 + if ! use evaluation; then
106 + rm behaviopy/evaluation.py || die
107 + fi
108 + default
109 +}
110 +
111 +python_test() {
112 + cd behaviopy/examples
113 + echo "backend : Agg" > matplotlibrc || die
114 + for i in *py; do
115 + echo "Executing $i"
116 + ${EPYTHON} $i || die
117 + done
118 +}
119
120 diff --git a/sci-biology/behaviopy/metadata.xml b/sci-biology/behaviopy/metadata.xml
121 new file mode 100644
122 index 000000000..1009f09d0
123 --- /dev/null
124 +++ b/sci-biology/behaviopy/metadata.xml
125 @@ -0,0 +1,26 @@
126 +<?xml version="1.0" encoding="UTF-8"?>
127 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
128 +<pkgmetadata>
129 + <maintainer type="person">
130 + <email>horea.christ@×××××.com</email>
131 + <name>Horea Christian</name>
132 + </maintainer>
133 + <maintainer type="project">
134 + <email>sci@g.o</email>
135 + <name>Gentoo Science Project</name>
136 + </maintainer>
137 + <longdescription lang="en">
138 + BehavioPy is a Python toolkit providing evaluation (e.g. event
139 + tracking) and plotting functions for behavioural data. Manual event
140 + tracking is done via a simple and configurable PsychoPy-based
141 + interface. Plotting functions are designed to work with preformatted
142 + data in CSV format (e.g. as exported by pandas), and use Seaborn and
143 + custom BehavioPy styles for maximum beautification.
144 + </longdescription>
145 + <upstream>
146 + <remote-id type="github">TheChymera/behaviopy</remote-id>
147 + </upstream>
148 + <use>
149 + <flag name="evaluation">Installs evaluation submodule.</flag>
150 + </use>
151 +</pkgmetadata>