blob: 8a9bfed0bcf4499d3f410943b33ca05e1cd34927 (
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
|
# Copyright 2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10..13} )
# no tags on github, no tests on PyPI
MY_PV=1d8aca73a72a4615b165602af9890517444e45d9
inherit distutils-r1 pypi
DESCRIPTION="Pure-Python Japanese character interconverter"
HOMEPAGE="
https://pypi.org/project/jaconv/
https://github.com/ikegami-yukino/jaconv
"
SRC_URI="
https://github.com/ikegami-yukino/jaconv/archive/${MY_PV}.tar.gz -> ${P}.gh.tar.gz
https://github.com/eli-schwartz/jaconv/commit/4f4160d33267ee7b6ff7386cdcdc6064a315b82a.patch?full_index=1
-> ${P}-nose-to-pytest.patch
"
S="${WORKDIR}/${PN}-${MY_PV}"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
distutils_enable_tests pytest
PATCHES=(
# https://github.com/ikegami-yukino/jaconv/pull/36
"${DISTDIR}"/${P}-nose-to-pytest.patch
)
src_prepare() {
default
# tries to add README as data to install to sys.prefix
sed -i '/data_files/d' setup.py
}
|