blob: 69c1788bdfa39c866612dff52b928f4946e83776 (
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
|
# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{13..14} )
inherit distutils-r1
DESCRIPTION="Python wrapper for LibRaw, RAW image processing"
HOMEPAGE="https://github.com/letmaik/rawpy https://pypi.org/project/rawpy/"
SRC_URI="https://github.com/letmaik/rawpy/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
DEPEND=">=media-libs/libraw-0.21:="
RDEPEND="${DEPEND}
dev-python/numpy[${PYTHON_USEDEP}]"
BDEPEND="dev-python/cython[${PYTHON_USEDEP}]
dev-python/numpy[${PYTHON_USEDEP}]
virtual/pkgconfig
test? (
dev-python/imageio[${PYTHON_USEDEP}]
dev-python/scikit-image[${PYTHON_USEDEP}]
)"
EPYTEST_PLUGINS=()
EPYTEST_IGNORE=(
test_mypy.py
test_stubtest.py
)
distutils_enable_tests pytest
python_configure_all() {
export RAWPY_USE_SYSTEM_LIBRAW=1
}
python_test() {
cd test || die
epytest
}
|