diff options
author | Sam James <sam@gentoo.org> | 2022-02-21 02:45:07 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-02-21 02:48:46 +0000 |
commit | 792d2cd03077ff77d4885aaacf44ac8fd793d2fa (patch) | |
tree | c7c76bd87e8d420750af682e4b8da7db95f22233 /dev-python/symengine | |
parent | sci-libs/symengine: add 0.9.0 (diff) | |
download | gentoo-792d2cd03077ff77d4885aaacf44ac8fd793d2fa.tar.gz gentoo-792d2cd03077ff77d4885aaacf44ac8fd793d2fa.tar.bz2 gentoo-792d2cd03077ff77d4885aaacf44ac8fd793d2fa.zip |
dev-python/symengine: add 0.9.1
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-python/symengine')
-rw-r--r-- | dev-python/symengine/Manifest | 1 | ||||
-rw-r--r-- | dev-python/symengine/symengine-0.9.1.ebuild | 54 |
2 files changed, 55 insertions, 0 deletions
diff --git a/dev-python/symengine/Manifest b/dev-python/symengine/Manifest index 283b375f1542..86bc2d457b81 100644 --- a/dev-python/symengine/Manifest +++ b/dev-python/symengine/Manifest @@ -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 diff --git a/dev-python/symengine/symengine-0.9.1.ebuild b/dev-python/symengine/symengine-0.9.1.ebuild new file mode 100644 index 000000000000..758a3f500e30 --- /dev/null +++ b/dev-python/symengine/symengine-0.9.1.ebuild @@ -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 +} |