summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Shvetsov <alexxy@gentoo.org>2019-08-03 23:18:22 +0300
committerAlexey Shvetsov <alexxy@gentoo.org>2019-08-03 23:18:22 +0300
commitdaa3b9ce8cd78de425b3fb0dc37014d1b337f2d1 (patch)
tree989209f4f5f182acb47014c7fb311f1e0d35e929 /dev-python/pywavelets
parentdev-python/pyamg: Works with py3.7 (diff)
downloadgentoo-daa3b9ce8cd78de425b3fb0dc37014d1b337f2d1.tar.gz
gentoo-daa3b9ce8cd78de425b3fb0dc37014d1b337f2d1.tar.bz2
gentoo-daa3b9ce8cd78de425b3fb0dc37014d1b337f2d1.zip
dev-python/pywavelets: Works with py3.7
Package-Manager: Portage-2.3.69, Repoman-2.3.16 Signed-off-by: Alexey Shvetsov <alexxy@gentoo.org>
Diffstat (limited to 'dev-python/pywavelets')
-rw-r--r--dev-python/pywavelets/pywavelets-0.5.2-r1.ebuild52
1 files changed, 52 insertions, 0 deletions
diff --git a/dev-python/pywavelets/pywavelets-0.5.2-r1.ebuild b/dev-python/pywavelets/pywavelets-0.5.2-r1.ebuild
new file mode 100644
index 000000000000..4efbea0aa77b
--- /dev/null
+++ b/dev-python/pywavelets/pywavelets-0.5.2-r1.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python2_7 python3_{5,6,7} )
+
+inherit distutils-r1
+
+MY_PN="${PN/pyw/PyW}"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="Discrete Wavelet Transforms in Python"
+HOMEPAGE="https://pywavelets.readthedocs.io/en/latest/"
+SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="doc examples test"
+
+RDEPEND="dev-python/numpy[${PYTHON_USEDEP}]"
+DEPEND="
+ dev-python/cython[${PYTHON_USEDEP}]
+ doc? ( dev-python/sphinx[${PYTHON_USEDEP}]
+ dev-python/numpydoc[${PYTHON_USEDEP}] )
+ test? (
+ ${RDEPEND}
+ dev-python/nose[${PYTHON_USEDEP}]
+ )
+"
+
+S="${WORKDIR}/${MY_P}"
+
+python_test() {
+ cd "${BUILD_DIR}"/lib || die
+ nosetests -v .
+}
+
+python_compile_all() {
+ use doc && emake -C doc html
+}
+
+python_install_all() {
+ use doc && local HTML_DOCS=( doc/build/html/. )
+ distutils-r1_python_install_all
+ if use examples; then
+ insinto /usr/share/doc/${PF}/examples
+ doins -r demo/*
+ docompress -x /usr/share/doc/${PF}/examples
+ fi
+}