commit:     f51f644df30b8e93a607f84f5b30c64105021659
Author:     Horea Christian <chr <AT> chymera <DOT> eu>
AuthorDate: Thu Jan 12 23:53:57 2023 +0000
Commit:     Horea Christian <horea.christ <AT> gmail <DOT> com>
CommitDate: Thu Jan 12 23:53:57 2023 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=f51f644d

dev-python/traits: add 6.4.1

Signed-off-by: Horea Christian <chr <AT> chymera.eu>

 dev-python/traits/traits-6.4.1.ebuild | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

diff --git a/dev-python/traits/traits-6.4.1.ebuild 
b/dev-python/traits/traits-6.4.1.ebuild
new file mode 100644
index 000000000..12afbe075
--- /dev/null
+++ b/dev-python/traits/traits-6.4.1.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_10 )
+
+inherit distutils-r1
+
+DESCRIPTION="Enthought Tool Suite: Explicitly typed attributes for Python"
+HOMEPAGE="https://docs.enthought.com/traits/
+       https://github.com/enthought/traits
+       https://pypi.org/project/traits/";
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+
+RDEPEND="dev-python/numpy[${PYTHON_USEDEP}]"
+
+distutils_enable_tests unittest
+# ToDo: Fix doc building:
+# AttributeError: 'NoDefaultSpecified' object has no attribute '__name__'
+#distutils_enable_sphinx docs/source --no-autodoc
+
+python_prepare_all() {
+       sed -i -e "s/'-O3'//g" setup.py || die
+       distutils-r1_python_prepare_all
+}
+
+python_test() {
+       cd "${BUILD_DIR}"/lib || die
+       ${EPYTHON} -m unittest discover || die
+}

Reply via email to