diff options
author | Aisha Tammy <gentoo@aisha.cc> | 2020-10-16 14:29:27 +0000 |
---|---|---|
committer | Benda Xu <heroxbd@gentoo.org> | 2020-11-09 22:01:45 +0800 |
commit | 0855a3aee553a2f759d9338eaa5c1eb8714f8ad0 (patch) | |
tree | 9a86ddffbb1b55d3276cc55690cc8339aa94e0a2 /dev-python | |
parent | dev-python/scikit-learn: moved sci-libs/scikits_learn (diff) | |
download | gentoo-0855a3aee553a2f759d9338eaa5c1eb8714f8ad0.tar.gz gentoo-0855a3aee553a2f759d9338eaa5c1eb8714f8ad0.tar.bz2 gentoo-0855a3aee553a2f759d9338eaa5c1eb8714f8ad0.zip |
dev-python/scikit-image: version bump to 0.17.2
remove tests as their build system is horrible and has to download the
test images
Package-Manager: Portage-3.0.8, Repoman-3.0.1
Signed-off-by: Aisha Tammy <gentoo@aisha.cc>
Signed-off-by: Benda Xu <heroxbd@gentoo.org>
Diffstat (limited to 'dev-python')
-rw-r--r-- | dev-python/scikit-image/Manifest | 2 | ||||
-rw-r--r-- | dev-python/scikit-image/metadata.xml | 22 | ||||
-rw-r--r-- | dev-python/scikit-image/scikit-image-0.13.0-r1.ebuild | 58 | ||||
-rw-r--r-- | dev-python/scikit-image/scikit-image-0.17.2.ebuild | 42 |
4 files changed, 124 insertions, 0 deletions
diff --git a/dev-python/scikit-image/Manifest b/dev-python/scikit-image/Manifest new file mode 100644 index 000000000000..a9303cfafc77 --- /dev/null +++ b/dev-python/scikit-image/Manifest @@ -0,0 +1,2 @@ +DIST scikit-image-0.13.0.tar.gz 26101533 BLAKE2B c28284f64abd58c7bafa8f5f0c781496e8bb28af79c5c730df7cbf2fede958eb88ea420fd7f89e7b8d0d91719a98dd0935af3b2cc50fe501cc8d8d1d0ee56cb9 SHA512 923015e373c406ae2fbbfdf83ce8b91e83790bdf7842c4439fdc9fd58cffe46efc0cfc7a1b0b06e1b2d092a909a6f085335640850883e7608dbccd1074046550 +DIST scikit-image-0.17.2.tar.gz 22682646 BLAKE2B acfa38caff7aa2e1f724e173f544610e643976a40feb752040d2f20d49d871d19dddb34790bf846476932c771c260ad9bd210781439707d7c5f693c9a8fa021c SHA512 3e57d8bea2fd41270eb17e8489c477f58ed98e56cef0192b0b2d455f27f7a2d705161afd61c7bfd556ec938a9a2bf5663ec1aa7b79609a8e5946806356364e82 diff --git a/dev-python/scikit-image/metadata.xml b/dev-python/scikit-image/metadata.xml new file mode 100644 index 000000000000..8e05ce3947d6 --- /dev/null +++ b/dev-python/scikit-image/metadata.xml @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>sci@gentoo.org</email> + <name>Gentoo Science Project</name> + </maintainer> + <longdescription lang="en"> + This SciKit (toolkit for SciPy) includes useful image processing + algorithms for use with Python and NumPy. While SciPy’s ndimage + provides low-level manipulation, scikits.image centres around + algorithms and applications. +</longdescription> + <use> + <flag name="freeimage">Enable support for image i/o via + <pkg>media-libs/freeimage</pkg></flag> + <flag name="pyamg">Enable support for algebraic solvers via <pkg>dev-python/pyamg</pkg></flag> + </use> + <upstream> + <remote-id type="pypi">scikit-image</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-python/scikit-image/scikit-image-0.13.0-r1.ebuild b/dev-python/scikit-image/scikit-image-0.13.0-r1.ebuild new file mode 100644 index 000000000000..6764d75ad7cf --- /dev/null +++ b/dev-python/scikit-image/scikit-image-0.13.0-r1.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7} ) + +inherit distutils-r1 optfeature virtualx + +MYPN="${PN/scikits_/scikit-}" +MYP="${MYPN}-${PV}" + +DESCRIPTION="Image processing routines for SciPy" +HOMEPAGE="https://scikit-image.org/" +SRC_URI="mirror://pypi/${PN:0:1}/${MYPN}/${MYP}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="doc freeimage pyamg test" +RESTRICT="!test? ( test )" + +RDEPEND=" + dev-python/matplotlib[${PYTHON_USEDEP}] + dev-python/networkx[${PYTHON_USEDEP}] + dev-python/numpy[${PYTHON_USEDEP}] + dev-python/pillow[${PYTHON_USEDEP}] + dev-python/pywavelets[${PYTHON_USEDEP}] + dev-python/six[${PYTHON_USEDEP}] + dev-python/scipy[sparse,${PYTHON_USEDEP}] + freeimage? ( media-libs/freeimage ) + pyamg? ( dev-python/pyamg[${PYTHON_USEDEP}] )" +DEPEND="${RDEPEND} + >=dev-python/cython-0.23[${PYTHON_USEDEP}] + dev-python/setuptools[${PYTHON_USEDEP}] + test? ( dev-python/nose[${PYTHON_USEDEP}] )" + +S="${WORKDIR}/${MYP}" + +DOCS=( CONTRIBUTORS.txt DEPENDS.txt RELEASE.txt TASKS.txt TODO.txt ) + +python_test() { + distutils_install_for_testing + cd "${TEST_DIR}" || die "no ${TEST_DIR} available" + echo "backend : Agg" > matplotlibrc || die + #echo "backend.qt4 : PyQt4" >> matplotlibrc || die + #echo "backend.qt4 : PySide" >> matplotlibrc || die + MPLCONFIGDIR=. virtx nosetests --exe -v skimage +} + +pkg_postinst() { + optfeature "FITS io capability" dev-python/astropy + optfeature "GTK" dev-python/pygtk + optfeature "Parallel computation" dev-python/dask + # not in portage yet + #optfeature "io plugin providing a wide variety of formats, including specialized formats using in medical imaging." dev-python/simpleitk + #optfeature "io plugin providing most standard formats" dev-python/imread +} diff --git a/dev-python/scikit-image/scikit-image-0.17.2.ebuild b/dev-python/scikit-image/scikit-image-0.17.2.ebuild new file mode 100644 index 000000000000..a071cd5c522c --- /dev/null +++ b/dev-python/scikit-image/scikit-image-0.17.2.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +# 8,9 not on dev-python/pyamg +PYTHON_COMPAT=( python3_{6..8} ) +DISTUTILS_USE_SETUPTOOLS=rdepend +inherit distutils-r1 optfeature + +DESCRIPTION="Image processing routines for SciPy" +HOMEPAGE="https://scikit-image.org/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" + +RDEPEND=" + dev-python/imageio[${PYTHON_USEDEP}] + dev-python/matplotlib[${PYTHON_USEDEP}] + dev-python/networkx[${PYTHON_USEDEP}] + dev-python/numpy[${PYTHON_USEDEP}] + dev-python/pillow[${PYTHON_USEDEP}] + dev-python/pywavelets[${PYTHON_USEDEP}] + dev-python/scipy[sparse,${PYTHON_USEDEP}] +" +DEPEND="${RDEPEND} + dev-python/cython[${PYTHON_USEDEP}] + dev-python/setuptools[${PYTHON_USEDEP}] +" + +DOCS=( CONTRIBUTORS.txt RELEASE.txt ) + +pkg_postinst() { + optfeature "FITS io capability" dev-python/astropy + optfeature "GTK" dev-python/pygtk + optfeature "Parallel computation" dev-python/dask + optfeature "io plugin providing most standard formats" dev-python/imread + # not in portage yet + #optfeature "io plugin providing a wide variety of formats, including specialized formats using in medical imaging." dev-python/simpleitk +} |