blob: 283ad9f455d4c2a21b3c19a5e8eaf2229a4bb0bb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
|
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10..11} )
inherit distutils-r1 pypi
MY_PN="dandi"
MY_P="${MY_PN}-${PV}"
DESCRIPTION="DANDI command line client to facilitate common operations"
HOMEPAGE="https://github.com/dandi/dandi-cli"
SRC_URI="$(pypi_sdist_url dandi)"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64"
IUSE="test etelemetry"
# Urllib dependency is a workaround for vcrpy::gentoo
# Remove when https://github.com/gentoo/gentoo/pull/31141 is merged
RDEPEND="
=dev-python/dandi-schema-0.8*[${PYTHON_USEDEP}]
>=dev-python/pydantic-1.9.0[${PYTHON_USEDEP}]
dev-python/appdirs[${PYTHON_USEDEP}]
dev-python/click-didyoumean[${PYTHON_USEDEP}]
dev-python/click[${PYTHON_USEDEP}]
dev-python/fasteners[${PYTHON_USEDEP}]
dev-python/fscacher[${PYTHON_USEDEP}]
<dev-python/urllib3-2[${PYTHON_USEDEP}]
dev-python/humanize[${PYTHON_USEDEP}]
dev-python/interleave[${PYTHON_USEDEP}]
dev-python/joblib[${PYTHON_USEDEP}]
dev-python/keyring[${PYTHON_USEDEP}]
dev-python/keyrings-alt[${PYTHON_USEDEP}]
dev-python/nwbinspector[${PYTHON_USEDEP}]
dev-python/packaging[${PYTHON_USEDEP}]
dev-python/pycryptodome[${PYTHON_USEDEP}]
dev-python/pynwb[${PYTHON_USEDEP}]
dev-python/pyout[${PYTHON_USEDEP}]
dev-python/python-dateutil[${PYTHON_USEDEP}]
dev-python/requests[${PYTHON_USEDEP}]
dev-python/ruamel-yaml[${PYTHON_USEDEP}]
dev-python/semantic_version[${PYTHON_USEDEP}]
dev-python/tenacity[${PYTHON_USEDEP}]
dev-python/wheel[${PYTHON_USEDEP}]
dev-python/zarr[${PYTHON_USEDEP}]
dev-python/zarr_checksum[${PYTHON_USEDEP}]
"
BDEPEND="
test? (
dev-python/anys[${PYTHON_USEDEP}]
dev-python/pyfakefs[${PYTHON_USEDEP}]
dev-python/pytest-mock[${PYTHON_USEDEP}]
dev-python/pytest-rerunfailures[${PYTHON_USEDEP}]
dev-python/responses[${PYTHON_USEDEP}]
dev-python/vcrpy[${PYTHON_USEDEP}]
media-libs/opencv[ffmpeg,${PYTHON_USEDEP}]
)
"
# Upstream might be amenable to dropping opencv:
# https://github.com/dandi/dandi-cli/issues/944
S="${WORKDIR}/${MY_P}"
# Reported upstream:
# https://github.com/dandi/dandi-cli/issues/1297
EPYTEST_DESELECT=(
dandi/tests/test_files.py::test_validate_bogus
)
distutils_enable_tests pytest
src_prepare() {
if use etelemetry; then
default
else
eapply "${FILESDIR}/${PN}-0.28.0-no-etelemetry.patch"
default
sed -i "/etelemetry/d" setup.cfg
fi
}
python_test() {
export DANDI_TESTS_NONETWORK=1
epytest
}
|