blob: ef0c76f652a31f52b135dd90e7f3053e77baf8b7 (
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 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{13..14} )
DISTUTILS_USE_PEP517=setuptools
inherit distutils-r1 optfeature
DESCRIPTION="Collection of custom storage backends for Django"
HOMEPAGE="
https://github.com/jschneier/django-storages
https://pypi.org/project/django-storages/
"
SRC_URI="https://github.com/jschneier/django-storages/archive/${PV}.tar.gz -> ${P}.gh.tar.gz"
PATCHES=( "${FILESDIR}/1.14.6-fix-moto-import.patch" )
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64"
RDEPEND="
>=dev-python/django-4.2[${PYTHON_USEDEP}]
"
BDEPEND="
test? (
${RDEPEND}
>=dev-python/isodate-0.7.2[${PYTHON_USEDEP}]
>=dev-python/azure-core-1.13[${PYTHON_USEDEP}]
>=dev-python/azure-storage-blob-12[${PYTHON_USEDEP}]
>=dev-python/boto3-1.4.4[${PYTHON_USEDEP}]
>=dev-python/moto-5[${PYTHON_USEDEP}]
>=dev-python/dropbox-7.2.1[${PYTHON_USEDEP}]
>=dev-python/paramiko-1.15[${PYTHON_USEDEP}]
)
"
EPYTEST_PLUGINS=()
EPYTEST_IGNORE=( tests/test_gcloud.py )
distutils_enable_tests pytest
python_test() {
local -x DJANGO_SETTINGS_MODULE=tests.settings
epytest
}
pkg_postinst() {
optfeature "azure" ">=dev-python/azure-core-1.13 >=dev-python/azure-storage-blob-12"
optfeature "boto3" ">=dev-python/boto3-1.4.4"
optfeature "dropbox" ">=dev-python/dropbox-7.2.1"
# not packaged
#optfeature "google" ">=dev-python/google-cloud-storage-1.36.1"
optfeature "libcloud" "dev-python/apache-libcloud"
optfeature "s3" ">=dev-python/boto3-1.4.4"
optfeature "sftp" ">=dev-python/paramiko-1.15"
}
|