1 |
commit: 7ebac5991efb491041cf00d606deabaac9b4a77f |
2 |
Author: Horea Christian <chr <AT> chymera <DOT> eu> |
3 |
AuthorDate: Thu Mar 2 14:20:06 2023 +0000 |
4 |
Commit: Horea Christian <horea.christ <AT> gmail <DOT> com> |
5 |
CommitDate: Thu Mar 2 14:20:06 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=7ebac599 |
7 |
|
8 |
dev-vcs/dandi-cli: add 0.50.0 |
9 |
|
10 |
Signed-off-by: Horea Christian <chr <AT> chymera.eu> |
11 |
|
12 |
dev-vcs/dandi-cli/dandi-cli-0.50.0.ebuild | 80 +++++++++++++++++++++++++++++++ |
13 |
1 file changed, 80 insertions(+) |
14 |
|
15 |
diff --git a/dev-vcs/dandi-cli/dandi-cli-0.50.0.ebuild b/dev-vcs/dandi-cli/dandi-cli-0.50.0.ebuild |
16 |
new file mode 100644 |
17 |
index 000000000..3fcb74d2d |
18 |
--- /dev/null |
19 |
+++ b/dev-vcs/dandi-cli/dandi-cli-0.50.0.ebuild |
20 |
@@ -0,0 +1,80 @@ |
21 |
+# Copyright 1999-2023 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_{10..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/dandi-schema-0.7*[${PYTHON_USEDEP}] |
45 |
+ >=dev-python/pydantic-1.9.0[${PYTHON_USEDEP}] |
46 |
+ dev-python/appdirs[${PYTHON_USEDEP}] |
47 |
+ dev-python/click-didyoumean[${PYTHON_USEDEP}] |
48 |
+ dev-python/click[${PYTHON_USEDEP}] |
49 |
+ dev-python/fasteners[${PYTHON_USEDEP}] |
50 |
+ dev-python/fscacher[${PYTHON_USEDEP}] |
51 |
+ dev-python/humanize[${PYTHON_USEDEP}] |
52 |
+ dev-python/interleave[${PYTHON_USEDEP}] |
53 |
+ dev-python/joblib[${PYTHON_USEDEP}] |
54 |
+ dev-python/keyring[${PYTHON_USEDEP}] |
55 |
+ dev-python/keyrings-alt[${PYTHON_USEDEP}] |
56 |
+ dev-python/nwbinspector[${PYTHON_USEDEP}] |
57 |
+ dev-python/packaging[${PYTHON_USEDEP}] |
58 |
+ dev-python/pycryptodome[${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 |
+ dev-python/zarr_checksum[${PYTHON_USEDEP}] |
69 |
+" |
70 |
+ |
71 |
+BDEPEND=" |
72 |
+ test? ( |
73 |
+ dev-python/anys[${PYTHON_USEDEP}] |
74 |
+ dev-python/responses[${PYTHON_USEDEP}] |
75 |
+ dev-python/pyfakefs[${PYTHON_USEDEP}] |
76 |
+ dev-python/pytest-mock[${PYTHON_USEDEP}] |
77 |
+ media-libs/opencv[ffmpeg,${PYTHON_USEDEP}] |
78 |
+ ) |
79 |
+" |
80 |
+# Upstream might be amenable to dropping opencv: |
81 |
+# https://github.com/dandi/dandi-cli/issues/944 |
82 |
+ |
83 |
+S="${WORKDIR}/${MY_P}" |
84 |
+ |
85 |
+distutils_enable_tests pytest |
86 |
+ |
87 |
+src_prepare() { |
88 |
+ if use etelemetry; then |
89 |
+ default |
90 |
+ else |
91 |
+ eapply "${FILESDIR}/${PN}-0.28.0-no-etelemetry.patch" |
92 |
+ default |
93 |
+ sed -i "/etelemetry/d" setup.cfg |
94 |
+ fi |
95 |
+} |
96 |
+ |
97 |
+python_test() { |
98 |
+ export DANDI_TESTS_NONETWORK=1 |
99 |
+ epytest |
100 |
+} |