1 |
commit: 8b67295ea634458c3e5f53ccecc82c9b7f01f3a6 |
2 |
Author: Horea Christian <chr <AT> chymera <DOT> eu> |
3 |
AuthorDate: Mon Oct 31 14:49:37 2022 +0000 |
4 |
Commit: Horea Christian <horea.christ <AT> gmail <DOT> com> |
5 |
CommitDate: Mon Oct 31 14:49:37 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=8b67295e |
7 |
|
8 |
dev-vcs/dandi-cli: add 0.46.6 |
9 |
|
10 |
Signed-off-by: Horea Christian <chr <AT> chymera.eu> |
11 |
|
12 |
dev-vcs/dandi-cli/dandi-cli-0.46.6.ebuild | 79 +++++++++++++++++++++++++++++++ |
13 |
1 file changed, 79 insertions(+) |
14 |
|
15 |
diff --git a/dev-vcs/dandi-cli/dandi-cli-0.46.6.ebuild b/dev-vcs/dandi-cli/dandi-cli-0.46.6.ebuild |
16 |
new file mode 100644 |
17 |
index 000000000..581257bdb |
18 |
--- /dev/null |
19 |
+++ b/dev-vcs/dandi-cli/dandi-cli-0.46.6.ebuild |
20 |
@@ -0,0 +1,79 @@ |
21 |
+# Copyright 1999-2022 Gentoo Authors |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+EAPI=8 |
25 |
+ |
26 |
+DISTUTILS_USE_PEP517=setuptools |
27 |
+PYTHON_COMPAT=( python3_{8..10} ) |
28 |
+ |
29 |
+inherit distutils-r1 |
30 |
+ |
31 |
+MY_PN="dandi" |
32 |
+MY_P="${MY_PN}-${PV}" |
33 |
+ |
34 |
+DESCRIPTION="DANDI command line client to facilitate common operations" |
35 |
+HOMEPAGE="https://github.com/dandi/dandi-cli" |
36 |
+SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" |
37 |
+ |
38 |
+LICENSE="Apache-2.0" |
39 |
+SLOT="0" |
40 |
+KEYWORDS="~amd64" |
41 |
+IUSE="test etelemetry" |
42 |
+ |
43 |
+RDEPEND=" |
44 |
+ dev-python/appdirs[${PYTHON_USEDEP}] |
45 |
+ dev-python/click[${PYTHON_USEDEP}] |
46 |
+ dev-python/click-didyoumean[${PYTHON_USEDEP}] |
47 |
+ =dev-python/dandi-schema-0.7*[${PYTHON_USEDEP}] |
48 |
+ dev-python/fasteners[${PYTHON_USEDEP}] |
49 |
+ dev-python/fscacher[${PYTHON_USEDEP}] |
50 |
+ dev-python/humanize[${PYTHON_USEDEP}] |
51 |
+ dev-python/interleave[${PYTHON_USEDEP}] |
52 |
+ dev-python/joblib[${PYTHON_USEDEP}] |
53 |
+ dev-python/keyring[${PYTHON_USEDEP}] |
54 |
+ dev-python/keyrings-alt[${PYTHON_USEDEP}] |
55 |
+ dev-python/nwbinspector[${PYTHON_USEDEP}] |
56 |
+ dev-python/packaging[${PYTHON_USEDEP}] |
57 |
+ dev-python/pycryptodome[${PYTHON_USEDEP}] |
58 |
+ >=dev-python/pydantic-1.9.0[${PYTHON_USEDEP}] |
59 |
+ dev-python/pynwb[${PYTHON_USEDEP}] |
60 |
+ dev-python/pyout[${PYTHON_USEDEP}] |
61 |
+ dev-python/python-dateutil[${PYTHON_USEDEP}] |
62 |
+ dev-python/requests[${PYTHON_USEDEP}] |
63 |
+ dev-python/ruamel-yaml[${PYTHON_USEDEP}] |
64 |
+ dev-python/semantic_version[${PYTHON_USEDEP}] |
65 |
+ dev-python/tenacity[${PYTHON_USEDEP}] |
66 |
+ dev-python/wheel[${PYTHON_USEDEP}] |
67 |
+ dev-python/zarr[${PYTHON_USEDEP}] |
68 |
+" |
69 |
+ |
70 |
+BDEPEND=" |
71 |
+ test? ( |
72 |
+ dev-python/anys[${PYTHON_USEDEP}] |
73 |
+ dev-python/responses[${PYTHON_USEDEP}] |
74 |
+ dev-python/pyfakefs[${PYTHON_USEDEP}] |
75 |
+ dev-python/pytest-mock[${PYTHON_USEDEP}] |
76 |
+ media-libs/opencv[ffmpeg,${PYTHON_USEDEP}] |
77 |
+ ) |
78 |
+" |
79 |
+# Upstream might be amenable to dropping opencv: |
80 |
+# https://github.com/dandi/dandi-cli/issues/944 |
81 |
+ |
82 |
+S="${WORKDIR}/${MY_P}" |
83 |
+ |
84 |
+distutils_enable_tests pytest |
85 |
+ |
86 |
+src_prepare() { |
87 |
+ if use etelemetry; then |
88 |
+ default |
89 |
+ else |
90 |
+ eapply "${FILESDIR}/${PN}-0.28.0-no-etelemetry.patch" |
91 |
+ default |
92 |
+ sed -i "/etelemetry/d" setup.cfg |
93 |
+ fi |
94 |
+} |
95 |
+ |
96 |
+python_test() { |
97 |
+ export DANDI_TESTS_NONETWORK=1 |
98 |
+ epytest |
99 |
+} |