summaryrefslogtreecommitdiff
path: root/dev-python/internetarchive/internetarchive-5.8.0.ebuild
blob: 70790bc73aa7ae7a5ec30b6413af016c010d8e3d (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
# Copyright 2024-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8
PYTHON_COMPAT=( python3_{12..14} )
DISTUTILS_USE_PEP517=setuptools
inherit distutils-r1

DESCRIPTION="Lib and CLI for archive.org - for search, uploading, downloading, rename etc"
HOMEPAGE="https://github.com/jjjake/internetarchive"

SRC_URI="https://github.com/jjjake/internetarchive/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz"

LICENSE="AGPL-3"
SLOT="0"
KEYWORDS="~amd64"

RDEPEND="
	dev-python/jsonpatch[${PYTHON_USEDEP}]
	dev-python/requests[${PYTHON_USEDEP}]
	dev-python/schema[${PYTHON_USEDEP}]
	dev-python/tqdm[${PYTHON_USEDEP}]
	dev-python/urllib3[${PYTHON_USEDEP}]
"
BDEPEND="
	test? (
		dev-python/responses[${PYTHON_USEDEP}]
	)
"

# Because they want internet
EPYTEST_DESELECT=(
	tests/cli/test_ia.py::test_ia
	tests/cli/test_ia_download.py::test_checksum
	tests/cli/test_ia_download.py::test_checksum_archive
	tests/cli/test_ia_download.py::test_clobber
	tests/cli/test_ia_download.py::test_destdir
	tests/cli/test_ia_download.py::test_dry_run
	tests/cli/test_ia_download.py::test_exclude
	tests/cli/test_ia_download.py::test_format
	tests/cli/test_ia_download.py::test_glob
	tests/cli/test_ia_download.py::test_https
	tests/cli/test_ia_download.py::test_no_args
	tests/cli/test_ia_download.py::test_no_directories
	tests/cli/test_ia_download.py::test_on_the_fly_format
	tests/cli/test_ia_upload.py::test_ia_upload_invalid_identifier
	tests/test_api.py::test_get_item_with_kwargs
	tests/test_api.py::test_upload_validate_identifier
	tests/test_item.py::test_download_ignore_errors
	tests/test_item.py::test_upload
	tests/test_item.py::test_upload_automatic_size_hint
	tests/test_item.py::test_upload_metadata
	tests/test_item.py::test_upload_queue_derive
	tests/test_item.py::test_upload_validate_identifier
	tests/test_session.py::test_cookies
	tests/test_session.py::test_s3_is_overloaded
)

distutils_enable_tests pytest