dev-python/electrum-ecc: New package, v0.0.5

New package for dev-libs/libsecp256k1 bindings from net-misc/electrum.

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2025-08-06 11:11:43 +02:00
parent cbb4c19342
commit 3099e4f627
3 changed files with 52 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST electrum_ecc-0.0.5.tar.gz 2009297 BLAKE2B e67858bb7e30f5e12a37f7adf82242b8fbee4c55724154748b8ab59f12413cc1a6c82a2655765326684cd5c2f1f57de971c5c320c810b27328704bd4a7f8d1b2 SHA512 982afb1a36f25d460413e678ebb4981d5ecca69a148c5d4d7d5f878d534c69b8966e9ac50499742eb5a89a67d2f2855a8887e2f28dd8aa18bc6ded6e1518c5e7

View File

@@ -0,0 +1,39 @@
# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=standalone
PYTHON_COMPAT=( pypy3_11 python3_{11..14} )
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"
# check ecc_fast.py for supported SOVERSIONS
RDEPEND="
|| (
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
}

View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>python@gentoo.org</email>
</maintainer>
<!-- no ALLARCHES: ctypes -->
<upstream>
<remote-id type="github">spesmilo/electrum-ecc</remote-id>
<remote-id type="pypi">electrum-ecc</remote-id>
</upstream>
</pkgmetadata>