mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-06 00:48:18 -07:00
dev-python/symengine: add 0.9.1
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
@@ -1 +1,2 @@
|
||||
DIST symengine.py-0.8.1.tar.gz 108857 BLAKE2B ff721982af3448d63074e599d56d38eef3002b4e8073fc22740ae61b288b863ed856d849675cbb1286f1b9bdd2263aa1e531635a0b074a7de6909a604e6b57e9 SHA512 73af12f686dcb495aef06964c76e6f31ef242bbba2e3b2fd545594fbf1902487edd021cc25b0a8324a7ac014e90ee85f64e388e092d36e8796db4c1ed53e75c7
|
||||
DIST symengine.py-0.9.1.tar.gz 110693 BLAKE2B 16ac7a36ebf7ef6642f8fde1b8463b63177753db3c5d87ed3cacc547c94561df504e5ae92af0e121010cabf70f6b123c73f5eb8e77809bed1de779dbf18f2e7c SHA512 560c809b0a5628752aefe4be5aaa8f1f8482abcbb50d018d9ffee395d7c956b4f5cedd13953f0641594d468fcbbe0465576d16543d22dbbc84b270b285970786
|
||||
|
||||
54
dev-python/symengine/symengine-0.9.1.ebuild
Normal file
54
dev-python/symengine/symengine-0.9.1.ebuild
Normal file
@@ -0,0 +1,54 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
DISTUTILS_PEP517_MODE=setuptools
|
||||
inherit distutils-r1
|
||||
|
||||
MY_P=${PN}.py-${PV}
|
||||
DESCRIPTION="Python wrappers to the symengine C++ library"
|
||||
HOMEPAGE="https://github.com/symengine/symengine.py/"
|
||||
SRC_URI="
|
||||
https://github.com/symengine/symengine.py/archive/v${PV}.tar.gz
|
||||
-> ${MY_P}.tar.gz"
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64 ~x86"
|
||||
|
||||
BDEPEND="dev-util/cmake
|
||||
dev-python/cython[${PYTHON_USEDEP}]
|
||||
test? (
|
||||
dev-python/sympy[${PYTHON_USEDEP}]
|
||||
)"
|
||||
# See bug #786582 for symengine constraint
|
||||
# See also https://github.com/symengine/symengine.py/blob/master/symengine_version.txt
|
||||
RDEPEND="
|
||||
dev-python/numpy[${PYTHON_USEDEP}]
|
||||
>=sci-libs/symengine-$(ver_cut 1-2):="
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
# the C library installs the same docs
|
||||
DOCS=()
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# Don't install tests
|
||||
> "${S}/symengine/tests/CMakeLists.txt" || die
|
||||
}
|
||||
|
||||
python_test() {
|
||||
cd "${BUILD_DIR}" || die
|
||||
epytest
|
||||
}
|
||||
|
||||
python_install() {
|
||||
distutils-r1_python_install
|
||||
python_optimize
|
||||
}
|
||||
Reference in New Issue
Block a user