summaryrefslogtreecommitdiff
path: root/dev-python/electrum-ecc/electrum-ecc-0.0.7.ebuild
blob: 3458d6b317aefa26f327ad02b742e679d6321498 (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
# Copyright 2025-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DISTUTILS_USE_PEP517=standalone
PYTHON_COMPAT=( python3_{9,10,11,12,13} pypy3 )

inherit distutils-r1 pypi

DESCRIPTION="Pure python ctypes wrapper for libsecp256k1"
HOMEPAGE="
	https://github.com/spesmilo/electrum-ecc/
	https://pypi.org/project/electrum-ecc/
"

LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 x86"

# ecc_fast.py KNOWN_COMPATIBLE_ABI_VERSIONS
RDEPEND="
	|| (
		dev-libs/libsecp256k1:0/6
		dev-libs/libsecp256k1:0/5
		dev-libs/libsecp256k1:0/2
	)
"
BDEPEND="
	dev-python/setuptools[${PYTHON_USEDEP}]
"

distutils_enable_tests unittest

export ELECTRUM_ECC_DONT_COMPILE=1

python_test() {
	cd tests || die
	eunittest
}