summaryrefslogtreecommitdiff
blob: 095b5fe728a1c4d70cef39a2f48b87a52cf69239 (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
# Copyright 2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DISTUTILS_USE_PEP517=poetry
PYTHON_COMPAT=( pypy3 python3_10 )

inherit distutils-r1

MY_P=${P/-/.}
DESCRIPTION="Create enumerated constants that are also subclasses of str"
HOMEPAGE="
	https://github.com/clbarnes/backports.strenum/
	https://pypi.org/project/backports.strenum/
"
# no tests in sdist
SRC_URI="
	https://github.com/clbarnes/backports.strenum/archive/v${PV}.tar.gz
		-> ${MY_P}.gh.tar.gz
"
S=${WORKDIR}/${MY_P}

LICENSE="PSF-2"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~riscv"

distutils_enable_tests pytest