Skip to content

Commit

Permalink
dev-python/cypari2: add 2.1.4, drop 2.1.3-r1
Browse files Browse the repository at this point in the history
  • Loading branch information
kiwifb committed Oct 19, 2023
1 parent 94094bf commit 35b995e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 13 deletions.
1 change: 1 addition & 0 deletions dev-python/cypari2/Manifest
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
DIST cypari2-2.1.3.tar.gz 127289 BLAKE2B 0347b5d661fd7411b8f39f054df224f13949164d1ca681a36a2cdab8541dc205b8f252c29b27ad328d78ea29028a70c0d00c743ee55c3e49377d0c7f46c874cf SHA512 eb8b60af578f6234af3cc65e13270365516a2e3a750183474cbc8990aaf4ac448d27f1508c0b47b42ac3fb11f8387ea821e6a29d4d866587ec835d49dc087687
DIST cypari2-2.1.4.tar.gz 127038 BLAKE2B 0d4998841a9a630ea062d7096845771a9a250ed66b68f99988ded6442724559089e8dbbce13ef5c6ad467705c65b2ac9fc5889fa9c40b9665083af558280b81a SHA512 b5926281037aebb899c1a433a0ca106cdfafcb8cb7abb863268ff8151dbc52ee21dbe1d09dde632de1640a4cc4d37f59bebb0e379d61ac2fbdf9fffcf3ba4775
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@

EAPI=8

PYTHON_COMPAT=( python3_{9..11} )
DISTUTILS_USE_PEP517=setuptools
DISTUTILS_EXT=1
PYTHON_COMPAT=( python3_{10..12} )
DISTUTILS_USE_PEP517=standalone

inherit distutils-r1 pypi
inherit distutils-r1

DESCRIPTION="A Python interface to the number theory library libpari"
HOMEPAGE="https://github.com/sagemath/cypari2"
SRC_URI="https://github.com/sagemath/${PN}/releases/download/${PV}/${P}.tar.gz"

LICENSE="GPL-2+"
SLOT="0"
Expand All @@ -20,20 +20,13 @@ IUSE=""
DEPEND=">=sci-mathematics/pari-2.13:=[gmp,doc]
dev-python/cysignals[${PYTHON_USEDEP}]"
RDEPEND="${DEPEND}"
BDEPEND="dev-python/cython[${PYTHON_USEDEP}]"
BDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
>=dev-python/cython-3.0.0[${PYTHON_USEDEP}]"

PATCHES=(
"${FILESDIR}"/0001-move-rebuild-out-of-build_ext-so-it-is-run-before-ev.patch
)

src_prepare() {
if has_version ">=dev-python/cython-3.0.0"; then
PATCHES+=( "${FILESDIR}"/cython-3.patch )
fi

distutils-r1_python_prepare_all
}

python_test(){
cd "${S}"/tests
${EPYTHON} rundoctest.py
Expand Down

0 comments on commit 35b995e

Please sign in to comment.